From 739ba81eb4389a84b6b5e52821ddbdb2b943ceb4 Mon Sep 17 00:00:00 2001 From: Agetian Date: Sun, 26 Jul 2020 20:07:13 +0300 Subject: [PATCH] Avoid SDL crash when starting 86Box in initial fullscreen mode (#946) --- src/win/win_ui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/win/win_ui.c b/src/win/win_ui.c index 304aa246f..ff5f01875 100644 --- a/src/win/win_ui.c +++ b/src/win/win_ui.c @@ -1027,10 +1027,6 @@ ui_init(int nCmdShow) return(5); } - /* Initialize the rendering window, or fullscreen. */ - if (start_in_fullscreen) - plat_setfullscreen(1); - /* Set up the current window size. */ plat_resize(scrnsz_x, scrnsz_y); @@ -1040,6 +1036,10 @@ ui_init(int nCmdShow) /* Set the PAUSE mode depending on the renderer. */ 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 * application that started us of our HWND, using the * the hWnd and unique ID the application has given