From f84fb4ad9ec61894dba6f08c67a4e5079aee8537 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 11 Jun 2008 11:41:44 +0000 Subject: [PATCH] use wxDC::SetDeviceClippingRegion() instead of deprecated SetClippingRegion() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/x11/utilsx.cpp | 4 ++-- src/x11/window.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/x11/utilsx.cpp b/src/x11/utilsx.cpp index 9bc793e343..a635f8f7e8 100644 --- a/src/x11/utilsx.cpp +++ b/src/x11/utilsx.cpp @@ -58,14 +58,14 @@ bool wxDoSetShape( Display* xdisplay, else { // wxRegion::ConvertToBitmap gives us the wrong Pixmap: - // polichrome and with black and whire reversed + // polychrome and with black and white reversed wxRect box = region.GetBox(); wxBitmap bmp(box.GetRight(), box.GetBottom(), 1); wxMemoryDC dc; dc.SelectObject(bmp); dc.SetBackground(*wxBLACK_BRUSH); dc.Clear(); - dc.SetClippingRegion(region); + dc.SetDeviceClippingRegion(region); dc.SetBackground(*wxWHITE_BRUSH); dc.Clear(); dc.SelectObject(wxNullBitmap); diff --git a/src/x11/window.cpp b/src/x11/window.cpp index b437ef79f6..6cae3175d7 100644 --- a/src/x11/window.cpp +++ b/src/x11/window.cpp @@ -1206,7 +1206,7 @@ void wxWindowX11::SendEraseEvents() if (m_clearRegion.IsEmpty()) return; wxClientDC dc( (wxWindow*)this ); - dc.SetClippingRegion( m_clearRegion ); + dc.SetDeviceClippingRegion( m_clearRegion ); wxEraseEvent erase_event( GetId(), &dc ); erase_event.SetEventObject( this ); -- 2.45.2