Regenerate window when changing sdl settings if "old fullscreen" is enabled

This commit is contained in:
jacob1 2021-09-03 00:06:15 -04:00
parent 50336565b4
commit 46d7682ed9
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -240,7 +240,7 @@ void SDLSetScreen(int scale_, bool resizable_, bool fullscreen_, bool altFullscr
// Recreate the window when toggling fullscreen, due to occasional issues
// Also recreate it when enabling resizable windows, to fix bugs on windows,
// see https://github.com/jacob1/The-Powder-Toy/issues/24
if (changingFullscreen || (changingResizable && resizable && !fullscreen))
if (changingFullscreen || altFullscreen || (changingResizable && resizable && !fullscreen))
{
RecreateWindow();
return;