aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2021-04-11 00:29:23 +0200
committerAndre Weissflog <floooh@gmail.com>2021-04-11 00:29:23 +0200
commitb6c5ff54156038fc4896270e023c6e9acedfa99b (patch)
tree2c2c27ec5c68888ab084dce3a84cc3310b91cc8d
parent8af227f667f6834eb7e4d5c04db1bc9bb1c09a19 (diff)
sokol_app.h: fix a misplaced comment
-rw-r--r--sokol_app.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 411bd607..4e8dccb8 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -2815,13 +2815,13 @@ _SOKOL_PRIVATE void _sapp_macos_run(const sapp_desc* desc) {
_sapp_init_state(desc);
_sapp_macos_init_keytable();
[NSApplication sharedApplication];
+ // set the application dock icon as early as possible, otherwise
+ // the dummy icon will be visible for a short time
sapp_set_icon(&_sapp.desc.icon);
NSApp.activationPolicy = NSApplicationActivationPolicyRegular;
_sapp.macos.app_dlg = [[_sapp_macos_app_delegate alloc] init];
NSApp.delegate = _sapp.macos.app_dlg;
[NSApp activateIgnoringOtherApps:YES];
- // set the application dock icon as early as possible, otherwise
- // the dummy icon will be visible for a short time
[NSApp run];
// NOTE: [NSApp run] never returns, instead cleanup code
// must be put into applicationWillTerminate