Changeset - r28747:c18b8e5fa74a
[Not reviewed]
master
0 1 0
Patric Stout - 10 months ago 2024-02-12 02:19:08
truebrain@openttd.org
Fix: visually also disable vsync when not using HW acceleration (#12066)
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/settings_gui.cpp
Show inline comments
 
@@ -728,6 +728,7 @@ struct GameOptionsWindow : Window {
 
				this->SetWidgetLoweredState(WID_GO_VIDEO_ACCEL_BUTTON, _video_hw_accel);
 
				this->SetWidgetDirty(WID_GO_VIDEO_ACCEL_BUTTON);
 
#ifndef __APPLE__
 
				this->SetWidgetLoweredState(WID_GO_VIDEO_VSYNC_BUTTON, _video_hw_accel && _video_vsync);
 
				this->SetWidgetDisabledState(WID_GO_VIDEO_VSYNC_BUTTON, !_video_hw_accel);
 
				this->SetWidgetDirty(WID_GO_VIDEO_VSYNC_BUTTON);
 
#endif
 
@@ -968,7 +969,7 @@ struct GameOptionsWindow : Window {
 
		this->SetWidgetDisabledState(WID_GO_REFRESH_RATE_DROPDOWN, _video_vsync);
 

	
 
#ifndef __APPLE__
 
		this->SetWidgetLoweredState(WID_GO_VIDEO_VSYNC_BUTTON, _video_vsync);
 
		this->SetWidgetLoweredState(WID_GO_VIDEO_VSYNC_BUTTON, _video_hw_accel && _video_vsync);
 
		this->SetWidgetDisabledState(WID_GO_VIDEO_VSYNC_BUTTON, !_video_hw_accel);
 
#endif
 

	
0 comments (0 inline, 0 general)