Skip to content

Commit

Permalink
Recreate window when toggling "altFullscreen" while fullscreen is ena…
Browse files Browse the repository at this point in the history
…bled

Fixes bug where half of the window gets cut off
  • Loading branch information
jacob1 committed Feb 21, 2019
1 parent 3fb134f commit 45ee678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PowderToySDL.cpp
Expand Up @@ -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_;
Expand Down

0 comments on commit 45ee678

Please sign in to comment.