From: Holger Schemel Date: Thu, 21 Apr 2016 22:47:37 +0000 (+0200) Subject: fixed bug with window scaling selection list not updated by window resize X-Git-Tag: 4.0.0.0-rc2~15 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=bce9cdc080e4c2bffb73372a434b984d5f4ca893 fixed bug with window scaling selection list not updated by window resize --- diff --git a/src/screens.c b/src/screens.c index c69b78fb..ec7d7b66 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4707,16 +4707,14 @@ static void execSetupGraphics_setRenderingModes() static void execSetupGraphics() { + // update "setup.window_scaling_percent" from list selection + // (in this case, window scaling was changed on setup screen) if (setup_mode == SETUP_MODE_CHOOSE_WINDOW_SIZE) - { - // update "setup.window_scaling_percent" from list selection execSetupGraphics_setWindowSizes(FALSE); - } - else - { - // update list selection from "setup.window_scaling_percent" - execSetupGraphics_setWindowSizes(TRUE); - } + + // update list selection from "setup.window_scaling_percent" + // (window scaling may have changed by resizing the window) + execSetupGraphics_setWindowSizes(TRUE); execSetupGraphics_setScalingTypes(); execSetupGraphics_setRenderingModes();