fix fullscreen mode saving

This commit is contained in:
IntelOrca 2015-01-24 15:06:14 +00:00
parent 5e074a61e6
commit 80959b7db7
2 changed files with 3 additions and 3 deletions

View File

@ -254,9 +254,6 @@ void osinterface_set_fullscreen_mode(int mode)
// TODO try another display mode rather than just exiting the game
}
gGeneral_config.fullscreen_mode = mode;
config_save();
}
static void osinterface_resize(int width, int height)

View File

@ -574,6 +574,9 @@ static void window_options_dropdown()
w->disabled_widgets &= ~(1 << WIDX_RESOLUTION);
}
osinterface_set_fullscreen_mode(dropdownIndex);
gGeneral_config.fullscreen_mode = (uint8)dropdownIndex;
config_save();
}
break;
case WIDX_TEMPERATURE_DROPDOWN: