X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a5b31f4e11c860fa5d9949c8694a7499793c3b98..c56d73fe00d724fc3bba1eb9e22c584434c0dff4:/src/dfb/app.cpp diff --git a/src/dfb/app.cpp b/src/dfb/app.cpp index 4618b16e4b..5f7a8004eb 100644 --- a/src/dfb/app.cpp +++ b/src/dfb/app.cpp @@ -20,6 +20,7 @@ #include "wx/evtloop.h" #include "wx/dfb/private.h" +#include "wx/private/fontmgr.h" //----------------------------------------------------------------------------- // wxApp initialization @@ -50,9 +51,6 @@ bool wxApp::Initialize(int& argc, wxChar **argv) if ( !wxIDirectFB::Get() ) return false; - #warning "FIXME: theme override is temporary" - wxTheme::Set(wxTheme::Create(_T("gtk"))); - return true; } @@ -60,6 +58,9 @@ void wxApp::CleanUp() { wxAppBase::CleanUp(); + wxFontsManager::CleanUp(); + + wxEventLoop::CleanUp(); wxIDirectFB::CleanUp(); } @@ -69,16 +70,11 @@ void wxApp::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