mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-24 02:29:20 +01:00
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.
This commit is contained in:
parent
05118a2326
commit
d82ecb67f7
@ -32,9 +32,9 @@ class EmuWindow {
|
|||||||
public:
|
public:
|
||||||
/// Data structure to store emuwindow configuration
|
/// Data structure to store emuwindow configuration
|
||||||
struct WindowConfig {
|
struct WindowConfig {
|
||||||
bool fullscreen;
|
bool fullscreen = false;
|
||||||
int res_width;
|
int res_width = 0;
|
||||||
int res_height;
|
int res_height = 0;
|
||||||
std::pair<unsigned, unsigned> min_client_area_size;
|
std::pair<unsigned, unsigned> min_client_area_size;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user