Recreate window when toggling "altFullscreen" while fullscreen is enabled

Fixes bug where half of the window gets cut off
This commit is contained in:
jacob1 2019-02-20 22:20:49 -05:00
parent 3fb134f814
commit 45ee6780d9

View File

@ -196,7 +196,7 @@ int SDLOpen()
void SDLSetScreen(int scale_, bool resizable_, bool fullscreen_, bool altFullscreen_, bool forceIntegerScaling_)
{
// bool changingScale = scale != scale_;
bool changingFullscreen = fullscreen_ != fullscreen;
bool changingFullscreen = fullscreen_ != fullscreen || (altFullscreen_ != altFullscreen && fullscreen);
bool changingResizable = resizable != resizable_;
scale = scale_;
fullscreen = fullscreen_;