From 6ac38a638233c36b5a53fb261a58e43254789b11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Pazdiora?= Date: Sat, 26 Dec 2015 23:44:02 +0100 Subject: [PATCH] fixed bug in "Fix #2158" which caused (if fullscreen was set) starting game in desktop resolution instead of selected fullscreen resolution. --- src/platform/shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/shared.c b/src/platform/shared.c index cc177a9489..362cf2e84f 100644 --- a/src/platform/shared.c +++ b/src/platform/shared.c @@ -443,7 +443,7 @@ void platform_process_messages() SDL_RestoreWindow(gWindow); SDL_MaximizeWindow(gWindow); } - if (SDL_GetWindowFlags(gWindow) & SDL_WINDOW_FULLSCREEN_DESKTOP) { + if ((SDL_GetWindowFlags(gWindow) & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN_DESKTOP) { SDL_RestoreWindow(gWindow); SDL_SetWindowFullscreen(gWindow, SDL_WINDOW_FULLSCREEN_DESKTOP); }