From: Holger Schemel Date: Sat, 5 Sep 2020 23:15:43 +0000 (+0200) Subject: fixed setting setup value and list selection for vsync mode X-Git-Tag: 4.2.0.2~5 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=c14b56eb259bfe5ec5e81544d8d3f526723b1c3f fixed setting setup value and list selection for vsync mode --- 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;