X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=a5d9d45fd62053da4df73f4d68912e6add29bdff;hb=c14b56eb259bfe5ec5e81544d8d3f526723b1c3f;hp=4b8921c26929f9cca9c302b52d6676e8aa538962;hpb=2d298d8e6d16600c4ea7cdbdc08508098f0218ef;p=rocksndiamonds.git diff --git a/src/screens.c b/src/screens.c index 4b8921c2..a5d9d45f 100644 --- a/src/screens.c +++ b/src/screens.c @@ -5302,13 +5302,21 @@ static void execSetupGraphics(void) if (setup_mode == SETUP_MODE_CHOOSE_WINDOW_SIZE) execSetupGraphics_setWindowSizes(FALSE); + // update "setup.vsync_mode" from list selection + // (in this case, vsync mode was changed on setup screen) + if (setup_mode == SETUP_MODE_CHOOSE_VSYNC) + execSetupGraphics_setVsyncModes(FALSE); + // update list selection from "setup.window_scaling_percent" // (window scaling may have changed by resizing the window) execSetupGraphics_setWindowSizes(TRUE); + // update list selection from "setup.vsync_mode" + // (vsync_mode may have changed by re-creating the renderer) + execSetupGraphics_setVsyncModes(TRUE); + execSetupGraphics_setScalingTypes(); execSetupGraphics_setRenderingModes(); - execSetupGraphics_setVsyncModes(FALSE); setup_mode = SETUP_MODE_GRAPHICS;