diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-14 19:36:13 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-14 19:36:43 -0400 |
commit | 2e715ef70d73be38050464c53d89b0aabd150196 (patch) | |
tree | 41101af424220e6735accb246cec54556c6b43cf /src | |
parent | d1520410a3cf38a14cd3f3b1dc3fcc5ae38c6b0b (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/frontend/emu_window.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h index 384dc7822..7006a37b3 100644 --- a/src/core/frontend/emu_window.h +++ b/src/core/frontend/emu_window.h @@ -34,9 +34,9 @@ class EmuWindow { public: /// Data structure to store emuwindow configuration 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; }; |