Changeset - r26021:adc255ff707f
[Not reviewed]
master
0 1 0
Charles Pigott - 3 years ago 2021-10-17 17:24:04
charlespigott@googlemail.com
Fix #9614: Refresh rate dropdown was still active when vsync was enabled
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/settings_gui.cpp
Show inline comments
 
@@ -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);
0 comments (0 inline, 0 general)