Skip to content

Commit

Permalink
Restore possibility to run fl_open_display() within a static initiali…
Browse files Browse the repository at this point in the history
…zer.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Dec 3, 2017
1 parent f609261 commit 6586b77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fl_cocoa.mm
Expand Up @@ -3776,7 +3776,7 @@ static void createAppleMenu(void)
NSMenuItem *menuItem;
NSString *title;

SEL infodictSEL = (fl_mac_os_version >= 100200 ? @selector(localizedInfoDictionary) : @selector(infoDictionary));
SEL infodictSEL = (Fl_Darwin_System_Driver::calc_mac_os_version() >= 100200 ? @selector(localizedInfoDictionary) : @selector(infoDictionary));
NSString *nsappname = [[[NSBundle mainBundle] performSelector:infodictSEL] objectForKey:@"CFBundleName"];
if (nsappname == nil)
nsappname = [[NSProcessInfo processInfo] processName];
Expand Down Expand Up @@ -4389,7 +4389,7 @@ static void nsbitmapProviderReleaseData (void *info, const void *data, size_t si
sscanf(s, "%d.%d.%d", &M, &m, &b);
}
[localPool release];
return M*10000 + m*100 + b;
return fl_mac_os_version = M*10000 + m*100 + b;
}

//
Expand Down

0 comments on commit 6586b77

Please sign in to comment.