Skip to content
Permalink
Browse files

Recreate window when toggling "altFullscreen" while fullscreen is ena…

…bled

Fixes bug where half of the window gets cut off
  • Loading branch information...
jacob1 committed Feb 21, 2019
1 parent 3fb134f commit 45ee6780d9354b908f2db6bbc617b41e2f3998f6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/PowderToySDL.cpp
@@ -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_;

0 comments on commit 45ee678

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.