mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
a84f04b541
commit
6ac38a6382
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue