+ wxCHECK_RET( Ok(), "invalid window dc" );
+
+ if (region.Empty())
+ {
+ DestroyClippingRegion();
+ return;
+ }
+
+ gdk_gc_set_clip_region( m_penGC, region.GetRegion() );
+ gdk_gc_set_clip_region( m_brushGC, region.GetRegion() );
+ gdk_gc_set_clip_region( m_textGC, region.GetRegion() );
+ gdk_gc_set_clip_region( m_bgGC, region.GetRegion() );
+}
+
+void wxWindowDC::DestroyClippingRegion()
+{
+ wxCHECK_RET( Ok(), "invalid window dc" );
+