From 45ee6780d9354b908f2db6bbc617b41e2f3998f6 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Wed, 20 Feb 2019 22:20:49 -0500 Subject: [PATCH] Recreate window when toggling "altFullscreen" while fullscreen is enabled Fixes bug where half of the window gets cut off --- src/PowderToySDL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index 89022d3e8..47843a363 100644 --- a/src/PowderToySDL.cpp +++ b/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_;