Fixed broken fullscreen menu toggle.
This commit is contained in:
parent
0261d1d50f
commit
3b114a5e34
|
@ -545,10 +545,16 @@ int title_show()
|
||||||
}
|
}
|
||||||
else if (selectedOption == 3)
|
else if (selectedOption == 3)
|
||||||
{
|
{
|
||||||
engine.fullScreen = !engine.fullScreen;
|
if (engine.fullScreen)
|
||||||
SDL_SetWindowFullscreen(window,
|
{
|
||||||
(engine.fullScreen ?
|
SDL_SetWindowFullscreen(window, 0);
|
||||||
SDL_WINDOW_FULLSCREEN_DESKTOP : 0));
|
engine.fullScreen = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
|
||||||
|
engine.fullScreen = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (selectedOption == 4)
|
else if (selectedOption == 4)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue