Browse Source

emu_window: Ensure WindowConfig members are always initialized

Previously we weren't always initializing all members of the struct.
Prevents potentially wonky behavior from occurring.
nce_cpp
Lioncash 7 years ago
parent
commit
893faf13d7
  1. 6
      src/core/frontend/emu_window.h

6
src/core/frontend/emu_window.h

@ -34,9 +34,9 @@ class EmuWindow {
public: public:
/// Data structure to store emuwindow configuration /// Data structure to store emuwindow configuration
struct WindowConfig { struct WindowConfig {
bool fullscreen;
int res_width;
int res_height;
bool fullscreen = false;
int res_width = 0;
int res_height = 0;
std::pair<unsigned, unsigned> min_client_area_size; std::pair<unsigned, unsigned> min_client_area_size;
}; };

Loading…
Cancel
Save