From e09f251fc6da7026922a431def468fdbcee2d3d0 Mon Sep 17 00:00:00 2001 From: Charles Pigott Date: Sun, 17 Oct 2021 18:24:04 +0100 Subject: [PATCH] Fix #9614: Refresh rate dropdown was still active when vsync was enabled --- src/settings_gui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index ae894cd505..3e7a0fbb12 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -469,6 +469,8 @@ struct GameOptionsWindow : Window { this->SetWidgetLoweredState(WID_GO_VIDEO_VSYNC_BUTTON, _video_vsync); this->SetWidgetDirty(WID_GO_VIDEO_VSYNC_BUTTON); + this->SetWidgetDisabledState(WID_GO_REFRESH_RATE_DROPDOWN, _video_vsync); + this->SetWidgetDirty(WID_GO_REFRESH_RATE_DROPDOWN); break; case WID_GO_BASE_SFX_VOLUME: @@ -608,6 +610,7 @@ struct GameOptionsWindow : Window { if (!gui_scope) return; this->SetWidgetLoweredState(WID_GO_FULLSCREEN_BUTTON, _fullscreen); this->SetWidgetLoweredState(WID_GO_VIDEO_ACCEL_BUTTON, _video_hw_accel); + this->SetWidgetDisabledState(WID_GO_REFRESH_RATE_DROPDOWN, _video_vsync); #ifndef __APPLE__ this->SetWidgetLoweredState(WID_GO_VIDEO_VSYNC_BUTTON, _video_vsync);