From b6c5ff54156038fc4896270e023c6e9acedfa99b Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Sun, 11 Apr 2021 00:29:23 +0200 Subject: sokol_app.h: fix a misplaced comment --- sokol_app.h | 4 ++-- 1 file 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 -- cgit v1.2.3