diff options
author | Owen Taylor <owt1@cornell.edu> | 1998-02-07 17:07:14 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-02-07 17:07:14 +0000 |
commit | 289f6a38fe765669934e724570b729af05af3b35 (patch) | |
tree | 2b2803c9096440633d02b51f9fcea938577f777b /gdk/gdkgc.c | |
parent | e105a87144629b195ccdb849eba4523f10dfa105 (diff) | |
download | gtk+-289f6a38fe765669934e724570b729af05af3b35.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>)
Changed to something better. ~((~1) << GCLastBit)
(From: from Daniel Stephens <daniel@cheeseplant.org>)
Diffstat (limited to 'gdk/gdkgc.c')
-rw-r--r-- | gdk/gdkgc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c index 0bdce50625..a26dc6cdae 100644 --- a/gdk/gdkgc.c +++ b/gdk/gdkgc.c @@ -687,9 +687,7 @@ gdk_gc_copy (GdkGC *dst_gc, GdkGC *src_gc) src_private = (GdkGCPrivate *) src_gc; dst_private = (GdkGCPrivate *) dst_gc; - /* Use a mask that covers all GC components. Could this generate - * a BadValue error ??? - */ - XCopyGC (src_private->xdisplay, src_private->xgc, 0xffffffff, + + XCopyGC (src_private->xdisplay, src_private->xgc, ~((~1) << GCLastBit), dst_private->xgc); } |