fixed bug in "Fix #2158"

which caused (if fullscreen was set) starting game in desktop resolution instead of selected fullscreen resolution.
This commit is contained in:
Tomáš Pazdiora 2015-12-26 23:44:02 +01:00
parent a84f04b541
commit 6ac38a6382
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}