]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcclient.cpp
remove wxSOCKET_MAX_EVENT, it is not really necessary and results in gcc warnings...
[wxWidgets.git] / src / gtk / dcclient.cpp
index 659c5937b483ba0b875d8805700f588b719c30a1..a7c10579f31d5db6518ad9b118c4183228343728 100644 (file)
@@ -1034,6 +1034,10 @@ GdkBitmap* wxWindowDCImpl::GetClippedMask(GdkBitmap* mask, int w, int h,
     c1.pixel = 1;
     wxGtkObject<GdkGC> gc(gdk_gc_new( new_mask ));
 
+    // zero-ing new_mask
+    gdk_gc_set_foreground( gc, &c0 );
+    gdk_draw_rectangle( new_mask, gc, TRUE, 0, 0, w, h );
+
     // clipping region
     gdk_gc_set_clip_region( gc, m_currentClippingRegion.GetRegion() );
     gdk_gc_set_clip_origin( gc, -x, -y );