protected:
// initializes the DC from a surface, must be called if default ctor
// was used
- void Init(const wxIDirectFBSurfacePtr& surface);
+ void DFBInit(const wxIDirectFBSurfacePtr& surface);
virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
int style = wxFLOOD_SURFACE);
wxDC::wxDC(const wxIDirectFBSurfacePtr& surface)
{
- Init(surface);
+ DFBInit(surface);
}
-void wxDC::Init(const wxIDirectFBSurfacePtr& surface)
+void wxDC::DFBInit(const wxIDirectFBSurfacePtr& surface)
{
m_ok = (surface != NULL);
wxCHECK_RET( surface != NULL, _T("invalid surface") );
r.x, r.y, r.GetRight(), r.GetBottom(),
origin.x, origin.y);
- Init(surface);
+ DFBInit(surface);
SetFont(win->GetFont());
// offset coordinates to account for subsurface's origin coordinates:
}
// init the DC for drawing to this bitmap
- Init(bitmap.GetDirectFBSurface());
+ DFBInit(bitmap.GetDirectFBSurface());
}
wxScreenDC::wxScreenDC()
{
- Init(wxIDirectFB::Get()->GetPrimarySurface());
+ DFBInit(wxIDirectFB::Get()->GetPrimarySurface());
}
#warning "FIXME: does wxScreenDC need Flip call in dtor?"
// another DC, so we have to change the DC to draw on the overlay's surface.
// Setting m_shouldFlip is done to avoid flipping and drawing of overlays
// in ~wxWindowDC (we do it EndDrawing).
- dc->Init(m_surface);
+ dc->DFBInit(m_surface);
dc->SetDeviceOrigin(-origin.x, -origin.y);
dc->m_shouldFlip = false;