]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/app.cpp
Another RTL fix.
[wxWidgets.git] / src / dfb / app.cpp
index 65d2be4478e8e6e398bc3f52c6c16694656d93ab..4618b16e4b9789412dd32174fcd697a77fad4657 100644 (file)
@@ -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;
 }