diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-01-03 15:23:08 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-01-03 21:20:28 +0100 |
commit | 4ce53cb85113956be318c12801d5663a26e3fef9 (patch) | |
tree | e2136e9f73b0611f08a5c946a6288abdf5881868 /src/video/cocoa/cocoa_wnd.mm | |
parent | c860a247d3e21628a0ac799d4d99ae178bb8a4a3 (diff) | |
download | openttd-4ce53cb85113956be318c12801d5663a26e3fef9.tar.xz |
Fix: [OSX] Quitting in fullscreen mode would loose the original window size.
This replicates the behaviour on e.g. Windows, which saves the original window size.
Diffstat (limited to 'src/video/cocoa/cocoa_wnd.mm')
-rw-r--r-- | src/video/cocoa/cocoa_wnd.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/cocoa/cocoa_wnd.mm b/src/video/cocoa/cocoa_wnd.mm index a2854adaf..8c16dd1ef 100644 --- a/src/video/cocoa/cocoa_wnd.mm +++ b/src/video/cocoa/cocoa_wnd.mm @@ -73,7 +73,7 @@ static OTTDMain *_ottd_main; [ _cocoa_subdriver->cocoaview resetCursorRects ]; /* Hand off to main application code. */ - QZ_GameLoop(); + static_cast<VideoDriver_Cocoa *>(VideoDriver::GetInstance())->GameLoop(); /* We are done, thank you for playing. */ [ self performSelectorOnMainThread:@selector(stopEngine) withObject:nil waitUntilDone:FALSE ]; |