[gtk+] Ensure gc clip region valid in _gdk_gc_update_context



commit 294e222fa8d516b5dee6c989a57a5538ef93fe37
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Sep 4 15:59:22 2009 +0200

    Ensure gc clip region valid in _gdk_gc_update_context
    
    There might be an old drawable clip on it, if so remove it.

 gdk/gdkgc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c
index e721ff5..44c2aa7 100644
--- a/gdk/gdkgc.c
+++ b/gdk/gdkgc.c
@@ -1396,6 +1396,8 @@ _gdk_gc_update_context (GdkGC          *gc,
 
   priv = GDK_GC_GET_PRIVATE (gc);
 
+  _gdk_gc_remove_drawable_clip (gc);
+
   fill = priv->fill;
   if (override_stipple && fill != GDK_OPAQUE_STIPPLED)
     fill = GDK_STIPPLED;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]