From 0bd62129f6bb6551fe4fbf9432f2448b1348a923 Mon Sep 17 00:00:00 2001 From: Ron Lee Date: Sun, 6 Feb 2000 09:06:54 +0000 Subject: [PATCH] patched DoSetClippingRegionAsRegion to update clipping state vars git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/dcclient.cpp | 5 +++++ src/gtk1/dcclient.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index b7952f248b..0bf84391ad 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -1383,6 +1383,11 @@ void wxWindowDC::DoSetClippingRegionAsRegion( const wxRegion ®ion ) return; } + wxCoord x,y,w,h; + region.GetBox( x, y, w, h ); + + wxDC::DoSetClippingRegion( x, y, w, h ); + if (!m_window) return; gdk_gc_set_clip_region( m_penGC, region.GetRegion() ); diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index b7952f248b..0bf84391ad 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/dcclient.cpp @@ -1383,6 +1383,11 @@ void wxWindowDC::DoSetClippingRegionAsRegion( const wxRegion ®ion ) return; } + wxCoord x,y,w,h; + region.GetBox( x, y, w, h ); + + wxDC::DoSetClippingRegion( x, y, w, h ); + if (!m_window) return; gdk_gc_set_clip_region( m_penGC, region.GetRegion() ); -- 2.45.2