Disable resolution option when in borderless fullscreen

This commit is contained in:
adrian17 committed 2014-07-30 14:55:40 +02:00
1 parent 5df3dbe671
commit ba08e4480c
1 file changed
+8
+8
View File
@@ -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;