From 80959b7db77ba02092f6dc56eaf7fc3887a935c1 Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Sat, 24 Jan 2015 15:06:14 +0000 Subject: [PATCH] fix fullscreen mode saving --- src/platform/osinterface.c | 3 --- src/windows/options.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/osinterface.c b/src/platform/osinterface.c index fe5191bf97..6d34bd5237 100644 --- a/src/platform/osinterface.c +++ b/src/platform/osinterface.c @@ -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) diff --git a/src/windows/options.c b/src/windows/options.c index 5507ca53d0..0a234f1272 100644 --- a/src/windows/options.c +++ b/src/windows/options.c @@ -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: