X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8461e4c253d4cec65e8f0320246a56d22555eb5e..832e44d38a9c283ea1b03a76f80efb52519de21f:/src/common/init.cpp diff --git a/src/common/init.cpp b/src/common/init.cpp index 41b3d29330..6182c6734f 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -48,6 +48,7 @@ class /* no WXDLLEXPORT */ wxConsoleApp : public wxApp { public: virtual int OnRun() { wxFAIL_MSG(wxT("unreachable")); return 0; } + virtual bool ProcessIdle() { return TRUE; } }; // ---------------------------------------------------------------------------- @@ -109,6 +110,7 @@ bool WXDLLEXPORT wxInitialize() return FALSE; } + wxTheApp->DoInit(); gs_nInitCount++; return TRUE; @@ -151,7 +153,7 @@ int wxEntry(int argc, char **argv) int mb_argc = 0; while (mb_argc < argc) { - wxTheApp->argv[mb_argc] = wxStrdup(wxConvLibc.cMB2WX(argv[mb_argc])); + wxTheApp->argv[mb_argc] = wxStrdup(wxConvLocal.cMB2WX(argv[mb_argc])); mb_argc++; } wxTheApp->argv[mb_argc] = (wxChar *)NULL;