1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

move osinterface code to shared or windows

This commit is contained in:
IntelOrca
2015-02-12 20:51:40 +00:00
parent bfb58133e9
commit a66b29076b
30 changed files with 1429 additions and 1588 deletions

View File

@@ -35,8 +35,8 @@
#include "../interface/widget.h"
#include "../interface/window.h"
#include "../localisation/localisation.h"
#include "../platform/platform.h"
#include "../sprites.h"
#include "../platform/osinterface.h"
#include "dropdown.h"
#include "error.h"
@@ -585,7 +585,7 @@ static void window_options_dropdown()
gGeneral_config.fullscreen_height = resolution->height;
if (gGeneral_config.fullscreen_mode == SDL_WINDOW_FULLSCREEN)
osinterface_set_fullscreen_mode(SDL_WINDOW_FULLSCREEN);
platform_set_fullscreen_mode(SDL_WINDOW_FULLSCREEN);
config_save();
gfx_invalidate_screen();
@@ -601,7 +601,7 @@ static void window_options_dropdown()
w->disabled_widgets &= ~(1 << WIDX_RESOLUTION_DROPDOWN);
w->disabled_widgets &= ~(1 << WIDX_RESOLUTION);
}
osinterface_set_fullscreen_mode(dropdownIndex);
platform_set_fullscreen_mode(dropdownIndex);
gGeneral_config.fullscreen_mode = (uint8)dropdownIndex;
config_save();