mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-22 14:09:10 +00:00
Fix #9614: Refresh rate dropdown was still active when vsync was enabled
This commit is contained in:
committed by
Patric Stout
parent
7d96a2d993
commit
3072b1904f
@@ -469,6 +469,8 @@ struct GameOptionsWindow : Window {
|
|||||||
|
|
||||||
this->SetWidgetLoweredState(WID_GO_VIDEO_VSYNC_BUTTON, _video_vsync);
|
this->SetWidgetLoweredState(WID_GO_VIDEO_VSYNC_BUTTON, _video_vsync);
|
||||||
this->SetWidgetDirty(WID_GO_VIDEO_VSYNC_BUTTON);
|
this->SetWidgetDirty(WID_GO_VIDEO_VSYNC_BUTTON);
|
||||||
|
this->SetWidgetDisabledState(WID_GO_REFRESH_RATE_DROPDOWN, _video_vsync);
|
||||||
|
this->SetWidgetDirty(WID_GO_REFRESH_RATE_DROPDOWN);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WID_GO_BASE_SFX_VOLUME:
|
case WID_GO_BASE_SFX_VOLUME:
|
||||||
@@ -608,6 +610,7 @@ struct GameOptionsWindow : Window {
|
|||||||
if (!gui_scope) return;
|
if (!gui_scope) return;
|
||||||
this->SetWidgetLoweredState(WID_GO_FULLSCREEN_BUTTON, _fullscreen);
|
this->SetWidgetLoweredState(WID_GO_FULLSCREEN_BUTTON, _fullscreen);
|
||||||
this->SetWidgetLoweredState(WID_GO_VIDEO_ACCEL_BUTTON, _video_hw_accel);
|
this->SetWidgetLoweredState(WID_GO_VIDEO_ACCEL_BUTTON, _video_hw_accel);
|
||||||
|
this->SetWidgetDisabledState(WID_GO_REFRESH_RATE_DROPDOWN, _video_vsync);
|
||||||
|
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
this->SetWidgetLoweredState(WID_GO_VIDEO_VSYNC_BUTTON, _video_vsync);
|
this->SetWidgetLoweredState(WID_GO_VIDEO_VSYNC_BUTTON, _video_vsync);
|
||||||
|
Reference in New Issue
Block a user