X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..02c0348e97d36f9907cc59bf9c75e04ffd93f889:/src/common/init.cpp diff --git a/src/common/init.cpp b/src/common/init.cpp index 390dced3de..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; } }; // ---------------------------------------------------------------------------- @@ -76,13 +77,6 @@ void WXDLLEXPORT wxExit() abort(); } -// Yield to other apps/messages -bool WXDLLEXPORT wxYield() -{ - // do nothing - return TRUE; -} - // Yield to other apps/messages void WXDLLEXPORT wxWakeUpIdle() { @@ -116,6 +110,7 @@ bool WXDLLEXPORT wxInitialize() return FALSE; } + wxTheApp->DoInit(); gs_nInitCount++; return TRUE; @@ -158,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;