#include "wx/univ/colschem.h"
#include "wx/sysopt.h"
#include "wx/mgl/private.h"
+#include "wx/private/fontmgr.h"
//-----------------------------------------------------------------------------
// wxApp::Exit()
wxLog::Suspend();
- if ( wxEventLoop::GetActive() )
+ wxEventLoopBase * const eventLoop = wxEventLoop::GetActive();
+ if ( eventLoop )
{
- while (wxEventLoop::GetActive()->Pending())
- wxEventLoop::GetActive()->Dispatch();
+ while (eventLoop->Pending())
+ eventLoop->Dispatch();
}
/* it's necessary to call ProcessIdle() to update the frames sizes which
IMPLEMENT_DYNAMIC_CLASS(wxApp,wxEvtHandler)
-BEGIN_EVENT_TABLE(wxApp, wxEvtHandler)
- EVT_IDLE(wxAppBase::OnIdle)
-END_EVENT_TABLE()
-
-
wxApp::wxApp()
{
}
return false;
}
- // must do it before calling wxAppBase::Initialize(), because fonts are
- // needed by stock lists which are created there
- wxTheFontsManager = new wxFontsManager;
-
if ( !wxAppBase::Initialize(argc, argv) )
{
- delete wxTheFontsManager;
- wxTheFontsManager = NULL;
MGL_exit();
return false;
}
void OnExit()
{
- delete wxTheFontsManager;
- wxTheFontsManager = (wxFontsManager*) NULL;
+ wxFontsManager::CleanUp();
wxDestroyMGL_WM();
MGL_exit();