Initialize default window size before GUI_StartUp
This commit is contained in:
parent
acb020147d
commit
a5b65b3c8e
1 changed files with 2 additions and 3 deletions
|
@ -243,7 +243,8 @@ struct SDL_Block {
|
|||
bool display_res;
|
||||
} full;
|
||||
struct {
|
||||
Bit16u width, height;
|
||||
uint16_t width = 0; // TODO convert to int
|
||||
uint16_t height = 0; // TODO convert to int
|
||||
bool use_original_size = true;
|
||||
} window;
|
||||
Bit8u bpp;
|
||||
|
@ -1844,8 +1845,6 @@ static void GUI_StartUp(Section * sec) {
|
|||
}
|
||||
}
|
||||
Bit16u windowspercentage = 0;
|
||||
sdl.desktop.window.width = 0;
|
||||
sdl.desktop.window.height = 0;
|
||||
const char* windowresolution=section->Get_string("windowresolution");
|
||||
if(windowresolution && *windowresolution) {
|
||||
char res[100];
|
||||
|
|
Loading…
Add table
Reference in a new issue