From dbf4c08aaae736e7b90c7c70e7acd688aeee22f4 Mon Sep 17 00:00:00 2001 From: Martin Nilsson <mani@lysator.liu.se> Date: Fri, 30 Dec 2005 01:07:49 +0100 Subject: [PATCH] Simplified set_clip_mask. Bitmap can not be 0 according to doc and type. Rev: src/post_modules/GTK2/source/gdkgc.pre:1.4 --- src/post_modules/GTK2/source/gdkgc.pre | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/post_modules/GTK2/source/gdkgc.pre b/src/post_modules/GTK2/source/gdkgc.pre index 8235d372ab..2355b205cb 100644 --- a/src/post_modules/GTK2/source/gdkgc.pre +++ b/src/post_modules/GTK2/source/gdkgc.pre @@ -135,13 +135,9 @@ void set_clip_origin(int x, int y) void set_clip_mask(GDK2.Bitmap mask) //! Set the clip mask to the specified GDK2.Bitmap { - if (args==1) { - struct object *o; - get_all_args("set_clip_mask",args,"%o",&o); - gdk_gc_set_clip_mask(GDK_GC(THIS->obj),GDK_DRAWABLE(get_gobject(o))); - } else - gdk_gc_set_clip_mask(GDK_GC(THIS->obj),0); - + struct object *o; + get_all_args("set_clip_mask",args,"%o",&o); + gdk_gc_set_clip_mask(GDK_GC(THIS->obj),GDK_DRAWABLE(get_gobject(o))); RETURN_THIS(); } -- GitLab