X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52c8d32a71bb7553dd89324fa6d56faac95eb5d0..db71eb0640221199170ac9ea83371c2d467fa456:/src/dfb/app.cpp diff --git a/src/dfb/app.cpp b/src/dfb/app.cpp index 65d2be4478..fc5357d91f 100644 --- a/src/dfb/app.cpp +++ b/src/dfb/app.cpp @@ -50,9 +50,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 +57,7 @@ void wxApp::CleanUp() { wxAppBase::CleanUp(); + wxEventLoop::CleanUp(); wxIDirectFB::CleanUp(); } @@ -71,12 +69,12 @@ static wxVideoMode GetCurrentVideoMode() { wxVideoMode m; - wxIDirectFBSurfacePtr surface(wxDfbGetPrimarySurface()); + wxIDirectFBSurfacePtr surface(wxIDirectFB::Get()->GetPrimarySurface()); if ( !surface ) return m; // invalid surface->GetSize(&m.w, &m.h); - m.bpp = wxDfbGetSurfaceDepth(surface); + m.bpp = surface->GetDepth(); return m; }