#include "wx/evtloop.h"
#include "wx/dfb/private.h"
+#include "wx/private/fontmgr.h"
//-----------------------------------------------------------------------------
// wxApp initialization
if ( !wxIDirectFB::Get() )
return false;
- #warning "FIXME: theme override is temporary"
- wxTheme::Set(wxTheme::Create(_T("gtk")));
-
return true;
}
{
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