1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

Fix cramped MacOS default window settings

This commit is contained in:
lizzie-a
2025-12-12 10:00:21 -05:00
committed by GitHub
parent 9daf2b5479
commit 96bc804fa8
2 changed files with 5 additions and 2 deletions

View File

@@ -800,10 +800,12 @@ private:
int32_t width = Config::Get().general.windowWidth;
int32_t height = Config::Get().general.windowHeight;
#endif
// Set defaults if size is invalid
if (width <= 0)
width = 640;
width = 1280;
if (height <= 0)
height = 480;
height = 720;
// Create window in window first rather than fullscreen so we have the display the window is on first
uint32_t flags = SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI;