From d82ecb67f77ca766dbd35b34eeb9fbe4f787b3d0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 14 Aug 2018 19:36:13 -0400 Subject: [PATCH] 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(-) diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h index e8c29adfb6..5fefcff54c 100644 --- a/src/core/frontend/emu_window.h +++ b/src/core/frontend/emu_window.h @@ -32,9 +32,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; };