mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Remove platform_get_non_window_flags
This commit is contained in:
@@ -580,10 +580,14 @@ private:
|
|||||||
|
|
||||||
// Check if the window has been resized in windowed mode and update the config file accordingly
|
// 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
|
// This is called in rct2_update and is only called after resizing a window has finished
|
||||||
sint32 nonWindowFlags = SDL_WINDOW_MAXIMIZED |
|
sint32 nonWindowFlags =
|
||||||
SDL_WINDOW_MINIMIZED |
|
#ifndef __MACOSX__
|
||||||
SDL_WINDOW_FULLSCREEN |
|
SDL_WINDOW_MAXIMIZED |
|
||||||
SDL_WINDOW_FULLSCREEN_DESKTOP;
|
#endif
|
||||||
|
SDL_WINDOW_MINIMIZED |
|
||||||
|
SDL_WINDOW_FULLSCREEN |
|
||||||
|
SDL_WINDOW_FULLSCREEN_DESKTOP;
|
||||||
|
|
||||||
if (!(flags & nonWindowFlags))
|
if (!(flags & nonWindowFlags))
|
||||||
{
|
{
|
||||||
if (width != gConfigGeneral.window_width || height != gConfigGeneral.window_height)
|
if (width != gConfigGeneral.window_width || height != gConfigGeneral.window_height)
|
||||||
|
|||||||
@@ -264,9 +264,4 @@ bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
|
|||||||
}
|
}
|
||||||
#endif // NO_TTF
|
#endif // NO_TTF
|
||||||
|
|
||||||
sint32 platform_get_non_window_flags()
|
|
||||||
{
|
|
||||||
return SDL_WINDOW_MAXIMIZED | SDL_WINDOW_MINIMIZED | SDL_WINDOW_FULLSCREEN | SDL_WINDOW_FULLSCREEN_DESKTOP;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -191,9 +191,4 @@ void core_init();
|
|||||||
utf8* macos_str_decomp_to_precomp();
|
utf8* macos_str_decomp_to_precomp();
|
||||||
#endif
|
#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
|
#endif
|
||||||
|
|||||||
@@ -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
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user