]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use deprecate SetClippingRegion(wxRegion)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Jun 2008 15:52:04 +0000 (15:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Jun 2008 15:52:04 +0000 (15:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp
src/generic/grid.cpp
src/gtk/window.cpp

index 7fb32cd53989bfd50ed75c7b083aa1a379824c98..9d221c17f1cb8e8ca24299ac3c499f965d2a0925 100644 (file)
@@ -3231,7 +3231,7 @@ void wxAuiManager::ShowHint(const wxRect& rect)
         // nasty redrawn problems.
         clip.Intersect(m_frame->GetRect());
 
-        screendc.SetClippingRegion(clip);
+        screendc.SetDeviceClippingRegion(clip);
 
         wxBitmap stipple = wxPaneCreateStippleBitmap();
         wxBrush brush(stipple);
index 0c01e6a71f0f712d57e62409c24f03f3682d096c..482e0a33385469f350ddd33051709baa0bb0711a 100644 (file)
@@ -7819,7 +7819,7 @@ void wxGrid::DrawAllGridLines( wxDC& dc, const wxRegion & WXUNUSED(reg) )
         }
     }
 
-    dc.SetClippingRegion( clippedcells );
+    dc.SetDeviceClippingRegion( clippedcells );
 
 
     // horizontal grid lines
index 5634ab6e2bc3753995b903188b986dd8e5807a58..89c6390b6a09512eef0dafa963677e48d1b43a1c 100644 (file)
@@ -3569,7 +3569,7 @@ void wxWindowGTK::GtkSendPaintEvents()
     else
     {
         wxWindowDC dc( (wxWindow*)this );
-        dc.SetClippingRegion( m_updateRegion );
+        dc.SetDeviceClippingRegion( m_updateRegion );
 
         // Work around gtk-qt <= 0.60 bug whereby the window colour
         // remains grey