#include "wx/evtloop.h"
#include "wx/dfb/private.h"
+#include "wx/private/fontmgr.h"
//-----------------------------------------------------------------------------
// wxApp initialization
{
wxAppBase::CleanUp();
+ wxFontsManager::CleanUp();
+
+ wxEventLoop::CleanUp();
wxIDirectFB::CleanUp();
}
static wxVideoMode GetCurrentVideoMode()
{
- wxVideoMode m;
-
- wxIDirectFBSurfacePtr surface(wxIDirectFB::Get()->GetPrimarySurface());
- if ( !surface )
- return m; // invalid
-
- surface->GetSize(&m.w, &m.h);
- m.bpp = surface->GetDepth();
+ wxIDirectFBDisplayLayerPtr layer(wxIDirectFB::Get()->GetDisplayLayer());
+ if ( !layer )
+ return wxVideoMode(); // invalid
- return m;
+ return layer->GetVideoMode();
}
wxVideoMode wxApp::GetDisplayMode() const
wxMutexGuiEnter();
#endif
- wxEventLoop::GetActive()->WakeUp();
+ wxEventLoop * const loop = wxEventLoop::GetActive();
+ if ( loop )
+ loop->WakeUp();
#if wxUSE_THREADS
if (!wxThread::IsMain())
wxLog::Suspend();
- if ( wxEventLoop::GetActive() )
- {
- while (wxEventLoop::GetActive()->Pending())
- wxEventLoop::GetActive()->Dispatch();
- }
+ wxEventLoop * const loop = wxEventLoop::GetActive();
+ if ( loop )
+ loop->Yield();
// it's necessary to call ProcessIdle() to update the frames sizes which
// might have been changed (it also will update other things set from