X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52c8d32a71bb7553dd89324fa6d56faac95eb5d0..2121eb69fa8d49f4484f7170159e61f2e8885de4:/src/dfb/app.cpp diff --git a/src/dfb/app.cpp b/src/dfb/app.cpp index 65d2be4478..4618b16e4b 100644 --- a/src/dfb/app.cpp +++ b/src/dfb/app.cpp @@ -71,12 +71,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; }