Fixed broken fullscreen menu toggle.

This commit is contained in:
onpon4 2017-02-05 12:21:03 -05:00
parent 0261d1d50f
commit 3b114a5e34
1 changed files with 10 additions and 4 deletions

View File

@ -545,10 +545,16 @@ int title_show()
}
else if (selectedOption == 3)
{
engine.fullScreen = !engine.fullScreen;
SDL_SetWindowFullscreen(window,
(engine.fullScreen ?
SDL_WINDOW_FULLSCREEN_DESKTOP : 0));
if (engine.fullScreen)
{
SDL_SetWindowFullscreen(window, 0);
engine.fullScreen = 0;
}
else
{
SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
engine.fullScreen = 1;
}
}
else if (selectedOption == 4)
{