X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=ec7d7b66cc928ace7caf6f292c6e3b4ffb4ebb7d;hb=766384cc29e6d22af67fe3329069291efc0f681a;hp=c69b78fb4fcd4e22bd1f2e12a742ba23b4756479;hpb=fd7a17027bb5c580b5d007fa33109f8a914d605b;p=rocksndiamonds.git 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();