summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-14 19:36:13 -0400
committerGravatar Lioncash2018-08-14 19:36:43 -0400
commit2e715ef70d73be38050464c53d89b0aabd150196 (patch)
tree41101af424220e6735accb246cec54556c6b43cf
parentMerge pull request #1055 from lioncash/init (diff)
downloadyuzu-2e715ef70d73be38050464c53d89b0aabd150196.tar.gz
yuzu-2e715ef70d73be38050464c53d89b0aabd150196.tar.xz
yuzu-2e715ef70d73be38050464c53d89b0aabd150196.zip
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.
-rw-r--r--src/core/frontend/emu_window.h6
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 {
34public: 34public:
35 /// Data structure to store emuwindow configuration 35 /// Data structure to store emuwindow configuration
36 struct WindowConfig { 36 struct WindowConfig {
37 bool fullscreen; 37 bool fullscreen = false;
38 int res_width; 38 int res_width = 0;
39 int res_height; 39 int res_height = 0;
40 std::pair<unsigned, unsigned> min_client_area_size; 40 std::pair<unsigned, unsigned> min_client_area_size;
41 }; 41 };
42 42