From c1bc8d9f92a3fde4e9d33213a1df46992478f369 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 9 Jun 2008 15:52:04 +0000 Subject: [PATCH] don't use deprecate SetClippingRegion(wxRegion) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/framemanager.cpp | 2 +- src/generic/grid.cpp | 2 +- src/gtk/window.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 7fb32cd539..9d221c17f1 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -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); diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 0c01e6a71f..482e0a3338 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -7819,7 +7819,7 @@ void wxGrid::DrawAllGridLines( wxDC& dc, const wxRegion & WXUNUSED(reg) ) } } - dc.SetClippingRegion( clippedcells ); + dc.SetDeviceClippingRegion( clippedcells ); // horizontal grid lines diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 5634ab6e2b..89c6390b6a 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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 -- 2.45.2