From c16db850cd522e862902c6614295dd449b3b0856 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 30 Oct 2006 22:42:34 +0000 Subject: [PATCH] compilation fixes after adding wxMemoryDCBase::Init(): renamed wxDC::Init() in wxDFB to DFBInit() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dfb/dc.h | 2 +- src/dfb/dc.cpp | 4 ++-- src/dfb/dcclient.cpp | 2 +- src/dfb/dcmemory.cpp | 2 +- src/dfb/dcscreen.cpp | 2 +- src/dfb/overlay.cpp | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/wx/dfb/dc.h b/include/wx/dfb/dc.h index 686bbea2a2..b5cfff51d9 100644 --- a/include/wx/dfb/dc.h +++ b/include/wx/dfb/dc.h @@ -117,7 +117,7 @@ public: 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); diff --git a/src/dfb/dc.cpp b/src/dfb/dc.cpp index 60b3782b92..d8d9176e83 100644 --- a/src/dfb/dc.cpp +++ b/src/dfb/dc.cpp @@ -53,10 +53,10 @@ wxDC::wxDC() 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") ); diff --git a/src/dfb/dcclient.cpp b/src/dfb/dcclient.cpp index 149067554f..1045b6305e 100644 --- a/src/dfb/dcclient.cpp +++ b/src/dfb/dcclient.cpp @@ -179,7 +179,7 @@ void wxWindowDC::InitForWin(wxWindow *win, const wxRect *rect) 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: diff --git a/src/dfb/dcmemory.cpp b/src/dfb/dcmemory.cpp index eb83b923d3..5ab26cb37f 100644 --- a/src/dfb/dcmemory.cpp +++ b/src/dfb/dcmemory.cpp @@ -59,5 +59,5 @@ void wxMemoryDC::DoSelect(const wxBitmap& bitmap) } // init the DC for drawing to this bitmap - Init(bitmap.GetDirectFBSurface()); + DFBInit(bitmap.GetDirectFBSurface()); } diff --git a/src/dfb/dcscreen.cpp b/src/dfb/dcscreen.cpp index 4d9ba71e76..114f30ba0b 100644 --- a/src/dfb/dcscreen.cpp +++ b/src/dfb/dcscreen.cpp @@ -38,7 +38,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC) wxScreenDC::wxScreenDC() { - Init(wxIDirectFB::Get()->GetPrimarySurface()); + DFBInit(wxIDirectFB::Get()->GetPrimarySurface()); } #warning "FIXME: does wxScreenDC need Flip call in dtor?" diff --git a/src/dfb/overlay.cpp b/src/dfb/overlay.cpp index 740b3c169b..64ae7eff53 100644 --- a/src/dfb/overlay.cpp +++ b/src/dfb/overlay.cpp @@ -78,7 +78,7 @@ void wxOverlayImpl::BeginDrawing(wxWindowDC *dc) // 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; -- 2.45.2