소스 검색

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.
Lioncash 8 년 전
부모
커밋
2e715ef70d
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/core/frontend/emu_window.h

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