From: Paul Cornett Date: Sun, 7 Dec 2008 05:51:42 +0000 (+0000) Subject: remove redundant clearing of clipped mask X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3d5b4827731d267a411838b8cb0ccbbac15d20cb remove redundant clearing of clipped mask git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index a7c10579f3..659c5937b4 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -1034,10 +1034,6 @@ GdkBitmap* wxWindowDCImpl::GetClippedMask(GdkBitmap* mask, int w, int h, c1.pixel = 1; wxGtkObject 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 );