Fix #21696: Fullscreen window option not correctly applied on macOS

This commit is contained in:
Kaavya Ramachandhran 2024-04-23 17:20:16 -04:00 committed by GitHub
parent ddc386b186
commit 1b4defbae9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View File

@ -5,6 +5,7 @@
- Improved: [#21769] Expose “animation is backwards” wall property in Tile Inspector.
- Change: [#21715] [Plugin] Remove access to the internal `owner` property. Note: `ownership` is still accessible.
- Fix: [#866] Boat Hire boats get stuck entering track.
- Fix: [#21696] Fullscreen window option not correctly applied on macOS.
- Fix: [#21787] Map generator heightmap should respect increased height limits.
- Fix: [#21829] When creating a new scenario, the default name contains formatting codes.

View File

@ -762,12 +762,7 @@ 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
SetFullscreenMode(static_cast<FULLSCREEN_MODE>(gConfigGeneral.FullscreenMode));
#endif
TriggerResize();
}