diff --git a/src/common/overlaycmn.cpp b/src/common/overlaycmn.cpp index 722cd5794f..eeb08b7cdd 100644 --- a/src/common/overlaycmn.cpp +++ b/src/common/overlaycmn.cpp @@ -152,11 +152,6 @@ void wxOverlayImpl::Init( wxDC* 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 ); diff --git a/src/generic/caret.cpp b/src/generic/caret.cpp index 6fb06d61a3..9a9a7bd38e 100644 --- a/src/generic/caret.cpp +++ b/src/generic/caret.cpp @@ -243,16 +243,8 @@ void wxCaret::Refresh() if ( m_xOld == -1 && m_yOld == -1 ) { // save the part we're going to overdraw - - int x = m_x, - y = m_y; -#if defined(__WXGTK__) && !defined(__WX_DC_BLIT_FIXED__) - wxPoint pt = dcWin.GetDeviceOrigin(); - x += pt.x; - y += pt.y; -#endif // broken wxGTK wxDC::Blit dcMem.Blit(0, 0, m_width, m_height, - &dcWin, x, y); + &dcWin, m_x, m_y); m_xOld = m_x; m_yOld = m_y;