git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42783
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
protected:
// initializes the DC from a surface, must be called if default ctor
// was used
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);
virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
int style = wxFLOOD_SURFACE);
wxDC::wxDC(const wxIDirectFBSurfacePtr& surface)
{
wxDC::wxDC(const wxIDirectFBSurfacePtr& surface)
{
-void wxDC::Init(const wxIDirectFBSurfacePtr& surface)
+void wxDC::DFBInit(const wxIDirectFBSurfacePtr& surface)
{
m_ok = (surface != NULL);
wxCHECK_RET( surface != NULL, _T("invalid surface") );
{
m_ok = (surface != NULL);
wxCHECK_RET( surface != NULL, _T("invalid surface") );
r.x, r.y, r.GetRight(), r.GetBottom(),
origin.x, origin.y);
r.x, r.y, r.GetRight(), r.GetBottom(),
origin.x, origin.y);
SetFont(win->GetFont());
// offset coordinates to account for subsurface's origin coordinates:
SetFont(win->GetFont());
// offset coordinates to account for subsurface's origin coordinates:
}
// init the DC for drawing to this bitmap
}
// init the DC for drawing to this bitmap
- Init(bitmap.GetDirectFBSurface());
+ DFBInit(bitmap.GetDirectFBSurface());
wxScreenDC::wxScreenDC()
{
wxScreenDC::wxScreenDC()
{
- Init(wxIDirectFB::Get()->GetPrimarySurface());
+ DFBInit(wxIDirectFB::Get()->GetPrimarySurface());
}
#warning "FIXME: does wxScreenDC need Flip call in dtor?"
}
#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).
// 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->DFBInit(m_surface);
dc->SetDeviceOrigin(-origin.x, -origin.y);
dc->m_shouldFlip = false;
dc->SetDeviceOrigin(-origin.x, -origin.y);
dc->m_shouldFlip = false;