]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/app.cpp
fixed crash in iconv_open() and cleaned up the code a bit further
[wxWidgets.git] / src / mgl / app.cpp
index 4ff72018bc2f087c967f0af99b53449b17277717..a542b5c24f9d17f1faa8c1485323f03255ee0387 100644 (file)
@@ -411,8 +411,6 @@ bool wxApp::Initialize()
 
     wxClassInfo::InitializeClasses();
 
-    wxSystemSettings::Init();
-    
 #if wxUSE_INTL
     wxFont::SetDefaultEncoding(wxLocale::GetSystemEncoding());
 #endif
@@ -486,8 +484,6 @@ void wxApp::CleanUp()
     delete wxPendingEventsLocker;
 #endif
 
-    wxSystemSettings::Done();
-
     wxClassInfo::CleanUpClasses();
 
     // Can't do this in wxModule, because fonts are needed by stock lists
@@ -543,6 +539,12 @@ void wxEntryCleanup()
 
 int wxEntry(int argc, char *argv[])
 {
+#ifdef __DJGPP__
+    // VS: disable long filenames under DJGPP as the very first thing,
+    //     since SciTech MGL doesn't like them much...
+    wxSetEnv(wxT("LFN"), wxT("N"));
+#endif
+
 #if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
     // This seems to be necessary since there are 'rogue'
     // objects present at this point (perhaps global objects?)