- 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