forked from rosebudai/OpenRCT2-Web
Disable resolution option when in borderless fullscreen
This commit is contained in:
1 parent
5df3dbe671
commit
ba08e4480c
1 file changed
+8
@@ -517,6 +517,14 @@ static void window_options_dropdown()
|
||||
break;
|
||||
case WIDX_FULLSCREEN_DROPDOWN:
|
||||
if (dropdownIndex != gGeneral_config.fullscreen_mode){
|
||||
if (dropdownIndex == 2){
|
||||
w->disabled_widgets |= (1 << WIDX_RESOLUTION_DROPDOWN);
|
||||
w->disabled_widgets |= (1 << WIDX_RESOLUTION);
|
||||
}
|
||||
else {
|
||||
w->disabled_widgets &= ~(1 << WIDX_RESOLUTION_DROPDOWN);
|
||||
w->disabled_widgets &= ~(1 << WIDX_RESOLUTION);
|
||||
}
|
||||
osinterface_set_fullscreen_mode(dropdownIndex);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user