mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #21696: Fullscreen window option not correctly applied on macOS
This commit is contained in:
parent
ddc386b186
commit
1b4defbae9
|
@ -5,6 +5,7 @@
|
||||||
- Improved: [#21769] Expose “animation is backwards” wall property in Tile Inspector.
|
- 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.
|
- 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: [#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: [#21787] Map generator heightmap should respect increased height limits.
|
||||||
- Fix: [#21829] When creating a new scenario, the default name contains formatting codes.
|
- Fix: [#21829] When creating a new scenario, the default name contains formatting codes.
|
||||||
|
|
||||||
|
|
|
@ -762,12 +762,7 @@ private:
|
||||||
|
|
||||||
UpdateFullscreenResolutions();
|
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));
|
SetFullscreenMode(static_cast<FULLSCREEN_MODE>(gConfigGeneral.FullscreenMode));
|
||||||
#endif
|
|
||||||
TriggerResize();
|
TriggerResize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue