From 2e715ef70d73be38050464c53d89b0aabd150196 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 14 Aug 2018 19:36:13 -0400 Subject: 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. --- src/core/frontend/emu_window.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 min_client_area_size; }; -- cgit v1.2.3