diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 70571a0ccc..74a8960962 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -580,10 +580,14 @@ private: // Check if the window has been resized in windowed mode and update the config file accordingly // This is called in rct2_update and is only called after resizing a window has finished - sint32 nonWindowFlags = SDL_WINDOW_MAXIMIZED | - SDL_WINDOW_MINIMIZED | - SDL_WINDOW_FULLSCREEN | - SDL_WINDOW_FULLSCREEN_DESKTOP; + sint32 nonWindowFlags = +#ifndef __MACOSX__ + SDL_WINDOW_MAXIMIZED | +#endif + SDL_WINDOW_MINIMIZED | + SDL_WINDOW_FULLSCREEN | + SDL_WINDOW_FULLSCREEN_DESKTOP; + if (!(flags & nonWindowFlags)) { if (width != gConfigGeneral.window_width || height != gConfigGeneral.window_height) diff --git a/src/openrct2/platform/linux.c b/src/openrct2/platform/linux.c index d1f9e684ed..1019439a02 100644 --- a/src/openrct2/platform/linux.c +++ b/src/openrct2/platform/linux.c @@ -264,9 +264,4 @@ bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size) } #endif // NO_TTF -sint32 platform_get_non_window_flags() -{ - return SDL_WINDOW_MAXIMIZED | SDL_WINDOW_MINIMIZED | SDL_WINDOW_FULLSCREEN | SDL_WINDOW_FULLSCREEN_DESKTOP; -} - #endif diff --git a/src/openrct2/platform/platform.h b/src/openrct2/platform/platform.h index 41bfef6643..ccb90bd2c0 100644 --- a/src/openrct2/platform/platform.h +++ b/src/openrct2/platform/platform.h @@ -191,9 +191,4 @@ void core_init(); utf8* macos_str_decomp_to_precomp(); #endif -// On macOS the resizing behaviour effectively resizes the window in the same -// way a normal drag would do, given constraints in the user desktop (e.g. the dock -// positioning). So it follows that the finished window size should be saved. -sint32 platform_get_non_window_flags(); - #endif diff --git a/src/openrct2/platform/windows.c b/src/openrct2/platform/windows.c index 232cc5677a..826f66d9ad 100644 --- a/src/openrct2/platform/windows.c +++ b/src/openrct2/platform/windows.c @@ -1090,9 +1090,4 @@ bool platform_setup_uri_protocol() /////////////////////////////////////////////////////////////////////////////// -sint32 platform_get_non_window_flags() -{ - return SDL_WINDOW_MAXIMIZED | SDL_WINDOW_MINIMIZED | SDL_WINDOW_FULLSCREEN | SDL_WINDOW_FULLSCREEN_DESKTOP; -} - #endif