Fix #21696: Mac not remembering fullscreen window option

This commit is contained in:
kaavyar 2024-04-21 19:31:34 -04:00
parent c4c706c59c
commit 0c1f2ecb5f
1 changed files with 1 additions and 4 deletions

View File

@ -763,11 +763,8 @@ private:
UpdateFullscreenResolutions();
// Fix #4022: Force Mac to windowed to avoid cursor offset on launch issue
#ifdef __MACOSX__
gConfigGeneral.FullscreenMode = static_cast<int32_t>(OpenRCT2::Ui::FULLSCREEN_MODE::WINDOWED);
#else
// Fix #21696: This workaround is obsolete, reverting it so that Mac remembers window mode
SetFullscreenMode(static_cast<FULLSCREEN_MODE>(gConfigGeneral.FullscreenMode));
#endif
TriggerResize();
}