1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Fix #4022: Mac cursor offset on launch (#13095)

Update config when forcing windowed mode
This commit is contained in:
Aidan Waite
2020-10-17 18:57:03 +09:00
committed by GitHub
parent cd39c30989
commit d287653cb5
2 changed files with 7 additions and 1 deletions

View File

@@ -678,8 +678,13 @@ private:
OnResize(width, height);
UpdateFullscreenResolutions();
SetFullscreenMode(static_cast<FULLSCREEN_MODE>(gConfigGeneral.fullscreen_mode));
// Fix #4022: Force Mac to windowed to avoid cursor offset on launch issue
#ifdef __MACOSX__
gConfigGeneral.fullscreen_mode = static_cast<int32_t>(OpenRCT2::Ui::FULLSCREEN_MODE::WINDOWED);
#else
SetFullscreenMode(static_cast<FULLSCREEN_MODE>(gConfigGeneral.fullscreen_mode));
#endif
TriggerResize();
}