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.
This commit is contained in:
Michael Lutz
2021-01-03 15:23:08 +01:00
parent c860a247d3
commit 4ce53cb851
4 changed files with 61 additions and 32 deletions

View File

@@ -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 ];