forked from mia/Aegisub
Hacks for Mac, LC_CTYPE must be "" and a wxSafeYield breaks something during FrameMain construction
Originally committed to SVN as r5913.
This commit is contained in:
parent
0c5cb8e490
commit
e095dc06cd
1 changed files with 6 additions and 0 deletions
|
@ -111,6 +111,10 @@ FrameMain::FrameMain (wxArrayString args)
|
|||
// However LC_NUMERIC must be "C", otherwise some parsing fails.
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
// Apple's wprintf() and family breaks with CTYPE set to "C"
|
||||
setlocale(LC_CTYPE, "");
|
||||
#endif
|
||||
|
||||
StartupLog("Initializing context models");
|
||||
AssFile::top = context->ass = new AssFile;
|
||||
|
@ -142,7 +146,9 @@ FrameMain::FrameMain (wxArrayString args)
|
|||
|
||||
StartupLog("Install PNG handler");
|
||||
wxImage::AddHandler(new wxPNGHandler);
|
||||
#ifndef __APPLE__
|
||||
wxSafeYield();
|
||||
#endif
|
||||
|
||||
StartupLog("Apply saved Maximized state");
|
||||
if (OPT_GET("App/Maximized")->GetBool()) Maximize(true);
|
||||
|
|
Loading…
Reference in a new issue