]> git.saurik.com Git - wxWidgets.git/commitdiff
remove old hacks for gtk blit problem which was probably fixed long ago
authorPaul Cornett <paulcor@bullseye.com>
Thu, 19 Feb 2009 17:45:09 +0000 (17:45 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 19 Feb 2009 17:45:09 +0000 (17:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/overlaycmn.cpp
src/generic/caret.cpp

index 722cd5794f9813ba58d094e3f128dac52adee313..eeb08b7cdd440395c30d1bf7cf68427a0ebef746 100644 (file)
@@ -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 );
index 6fb06d61a372f84b9fdd17f9edb263481b9ef866..9a9a7bd38e9f78dd8d4c955f1592f9c4d7afc0d6 100644 (file)
@@ -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;