Przeglądaj źródła

Merge pull request #1067 from lioncash/init

emu_window: Ensure WindowConfig members are always initialized
bunnei 8 lat temu
rodzic
commit
301baaa942
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/core/frontend/emu_window.h

+ 3 - 3
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;
     };
     };