From bce9cdc080e4c2bffb73372a434b984d5f4ca893 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 22 Apr 2016 00:47:37 +0200 Subject: [PATCH] fixed bug with window scaling selection list not updated by window resize --- src/screens.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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(); -- 2.34.1