X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05dff6b0756ec639d4d05ed88ef47e57a8dbbae8..7198c3368055d88249a338eb33b21f051f674806:/src/common/overlaycmn.cpp diff --git a/src/common/overlaycmn.cpp b/src/common/overlaycmn.cpp index 35b222e49d..f08cb238e5 100644 --- a/src/common/overlaycmn.cpp +++ b/src/common/overlaycmn.cpp @@ -53,24 +53,24 @@ bool wxOverlay::IsOk() return m_impl->IsOk(); } -void wxOverlay::Init( wxWindowDC* dc, int x , int y , int width , int height ) +void wxOverlay::Init( wxDC* dc, int x , int y , int width , int height ) { m_impl->Init(dc, x, y, width, height); } -void wxOverlay::BeginDrawing( wxWindowDC* dc) +void wxOverlay::BeginDrawing( wxDC* dc) { m_impl->BeginDrawing(dc); m_inDrawing = true ; } -void wxOverlay::EndDrawing( wxWindowDC* dc) +void wxOverlay::EndDrawing( wxDC* dc) { m_impl->EndDrawing(dc); m_inDrawing = false ; } -void wxOverlay::Clear( wxWindowDC* dc) +void wxOverlay::Clear( wxDC* dc) { m_impl->Clear(dc); } @@ -86,13 +86,13 @@ void wxOverlay::Reset() // wxDCOverlay // ---------------------------------------------------------------------------- -wxDCOverlay::wxDCOverlay(wxOverlay &overlay, wxWindowDC *dc, int x , int y , int width , int height) : +wxDCOverlay::wxDCOverlay(wxOverlay &overlay, wxDC *dc, int x , int y , int width , int height) : m_overlay(overlay) { Init(dc, x, y, width, height); } -wxDCOverlay::wxDCOverlay(wxOverlay &overlay, wxWindowDC *dc) : +wxDCOverlay::wxDCOverlay(wxOverlay &overlay, wxDC *dc) : m_overlay(overlay) { int width; @@ -106,7 +106,7 @@ wxDCOverlay::~wxDCOverlay() m_overlay.EndDrawing(m_dc); } -void wxDCOverlay::Init(wxWindowDC *dc, int x , int y , int width , int height ) +void wxDCOverlay::Init(wxDC *dc, int x , int y , int width , int height ) { m_dc = dc ; if ( !m_overlay.IsOk() ) @@ -139,10 +139,10 @@ wxOverlayImpl::~wxOverlayImpl() bool wxOverlayImpl::IsOk() { - return m_bmpSaved.Ok() ; + return m_bmpSaved.IsOk() ; } -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 ) { m_window = dc->GetWindow(); wxMemoryDC dcMem ; @@ -152,17 +152,12 @@ void wxOverlayImpl::Init( wxWindowDC* dc, int x , int y , int width , int height m_y = y ; m_width = width ; m_height = height ; -#if defined(__WXGTK__) && !defined(__WX_DC_BLIT_FIXED__) - wxPoint pt = dc->GetDeviceOrigin(); - x += pt.x; - y += pt.y; -#endif // broken wxGTK wxDC::Blit dcMem.Blit(0, 0, m_width, m_height, dc, x, y); dcMem.SelectObject( wxNullBitmap ); } -void wxOverlayImpl::Clear(wxWindowDC* dc) +void wxOverlayImpl::Clear(wxDC* dc) { wxMemoryDC dcMem ; dcMem.SelectObject( m_bmpSaved ); @@ -175,11 +170,11 @@ void wxOverlayImpl::Reset() m_bmpSaved = wxBitmap(); } -void wxOverlayImpl::BeginDrawing(wxWindowDC* WXUNUSED(dc)) +void wxOverlayImpl::BeginDrawing(wxDC* WXUNUSED(dc)) { } -void wxOverlayImpl::EndDrawing(wxWindowDC* WXUNUSED(dc)) +void wxOverlayImpl::EndDrawing(wxDC* WXUNUSED(dc)) { }