From: Stefan Csomor Date: Sat, 22 Dec 2007 09:16:57 +0000 (+0000) Subject: changing to wxDC, so that wxGCDC can be used as well X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a1657b633e3e09c0a61c64160e0b40d766fba322 changing to wxDC, so that wxGCDC can be used as well git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/dfb/overlay.cpp b/src/dfb/overlay.cpp index f5f367de7f..cee282298a 100644 --- a/src/dfb/overlay.cpp +++ b/src/dfb/overlay.cpp @@ -56,7 +56,7 @@ bool wxOverlayImpl::IsOk() return m_window != NULL; } -void wxOverlayImpl::Init(wxWindowDC *dc, int x, int y, int width, int height) +void wxOverlayImpl::Init(wxDC *dc, int x, int y, int width, int height) { wxCHECK_RET( dc, "NULL dc pointer" ); wxASSERT_MSG( !IsOk() , _("You cannot Init an overlay twice") ); @@ -80,7 +80,7 @@ void wxOverlayImpl::Init(wxWindowDC *dc, int x, int y, int width, int height) m_window->AddOverlay(this); } -void wxOverlayImpl::BeginDrawing(wxWindowDC *dc) +void wxOverlayImpl::BeginDrawing(wxDC *dc) { wxCHECK_RET( dc, "NULL dc pointer" ); @@ -102,12 +102,12 @@ void wxOverlayImpl::BeginDrawing(wxWindowDC *dc) m_isEmpty = false; } -void wxOverlayImpl::EndDrawing(wxWindowDC *WXUNUSED(dc)) +void wxOverlayImpl::EndDrawing(wxDC *WXUNUSED(dc)) { m_window->RefreshWindowRect(m_rect); } -void wxOverlayImpl::Clear(wxWindowDC *WXUNUSED(dc)) +void wxOverlayImpl::Clear(wxDC *WXUNUSED(dc)) { wxASSERT_MSG( IsOk(), "You cannot Clear an overlay that is not initialized" );