diff options
author | Patric Stout <truebrain@openttd.org> | 2021-02-24 14:52:04 +0100 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-02-24 21:58:47 +0100 |
commit | 6a8c461e38360d14fc36d77a63150a07c6e64ff9 (patch) | |
tree | a51915173ae7572057b9a4db47c87330fb4ab883 /src/video/cocoa/cocoa_wnd.mm | |
parent | 67d3c6aa7186fe54725d06cc246a95dc62a4bbfb (diff) | |
download | openttd-6a8c461e38360d14fc36d77a63150a07c6e64ff9.tar.xz |
Codechange: [OSX] GameLoop is really more like MainLoop
MainLoop() is used to bootstrap OSX, where later a callback is
done to GameLoop() to execute OpenTTD. All other video drivers
don't need that, so what is in GameLoop is in MainLoop for all
other drivers. This is rather confusing. So, instead, name
GameLoop MainLoopReal to be more in sync with the other drivers.
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 78e942c92..d5a7ba84c 100644 --- a/src/video/cocoa/cocoa_wnd.mm +++ b/src/video/cocoa/cocoa_wnd.mm @@ -152,7 +152,7 @@ static std::vector<WChar> NSStringToUTF32(NSString *s) [ e release ]; /* Hand off to main application code. */ - drv->GameLoop(); + drv->MainLoopReal(); /* We are done, thank you for playing. */ [ self performSelectorOnMainThread:@selector(stopEngine) withObject:nil waitUntilDone:FALSE ]; |