diff options
author | Owen Taylor <owt1@cornell.edu> | 1998-02-07 16:34:40 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-02-07 16:34:40 +0000 |
commit | c763748dd15489851e579e9208fd9186df05d0f4 (patch) | |
tree | be3dc626b3ec88832fad3c9bc4723ddec71ad09a /gdk/gdkgc.c | |
parent | 75cd57b6cbdb767d682ac4aae973d5bc433e99e7 (diff) | |
download | gtk+-c763748dd15489851e579e9208fd9186df05d0f4.tar.gz |
use a mask of 0xffffffff instead of 0xffff, since there are 22 flags
Sat Feb 7 11:33:08 1998 Owen Taylor <owt1@cornell.edu>
* gdk/gdkgc.c (gdk_gc_copy): use a mask of 0xffffffff
instead of 0xffff, since there are 22 flags currently
defined. (From: Jon Trowbridge <trow@emccta.com>)
Diffstat (limited to 'gdk/gdkgc.c')
-rw-r--r-- | gdk/gdkgc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c index 7210acd8fd..0bdce50625 100644 --- a/gdk/gdkgc.c +++ b/gdk/gdkgc.c @@ -687,5 +687,9 @@ gdk_gc_copy (GdkGC *dst_gc, GdkGC *src_gc) src_private = (GdkGCPrivate *) src_gc; dst_private = (GdkGCPrivate *) dst_gc; - XCopyGC (src_private->xdisplay, src_private->xgc, 0xffff, dst_private->xgc); + /* Use a mask that covers all GC components. Could this generate + * a BadValue error ??? + */ + XCopyGC (src_private->xdisplay, src_private->xgc, 0xffffffff, + dst_private->xgc); } |