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>)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user