void wxMemoryDC::DoSelect(const wxBitmap& bitmap) { m_bmp = bitmap; if ( !bitmap.Ok() ) { // select the bitmap out of the DC m_surface = NULL; return; } // init the DC for drawing to this bitmap DFBInit(bitmap.GetDirectFBSurface()); }
wxScreenDCImpl::wxScreenDCImpl(wxScreenDC *owner) : wxDFBDCImpl(owner) { DFBInit(wxIDirectFB::Get()->GetPrimarySurface()); }
wxDC::wxDC(const wxIDirectFBSurfacePtr& surface) { DFBInit(surface); }