Avoid SDL crash when starting 86Box in initial fullscreen mode (#946)

This commit is contained in:
Agetian
2020-07-26 20:07:13 +03:00
committed by GitHub
parent 797af21ad9
commit 739ba81eb4

View File

@@ -1027,10 +1027,6 @@ ui_init(int nCmdShow)
return(5); return(5);
} }
/* Initialize the rendering window, or fullscreen. */
if (start_in_fullscreen)
plat_setfullscreen(1);
/* Set up the current window size. */ /* Set up the current window size. */
plat_resize(scrnsz_x, scrnsz_y); plat_resize(scrnsz_x, scrnsz_y);
@@ -1040,6 +1036,10 @@ ui_init(int nCmdShow)
/* Set the PAUSE mode depending on the renderer. */ /* Set the PAUSE mode depending on the renderer. */
plat_pause(0); plat_pause(0);
/* Initialize the rendering window, or fullscreen. */
if (start_in_fullscreen)
plat_setfullscreen(1);
/* If so requested via the command line, inform the /* If so requested via the command line, inform the
* application that started us of our HWND, using the * application that started us of our HWND, using the
* the hWnd and unique ID the application has given * the hWnd and unique ID the application has given