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>)
This commit is contained in:
		@ -4,6 +4,9 @@ Sat Feb  7 11:33:08 1998  Owen Taylor  <owt1@cornell.edu>
 | 
			
		||||
	  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>)
 | 
			
		||||
	
 | 
			
		||||
Sat Feb  7 02:29:01 1998  Tim Janik  <timj@gimp.org>
 | 
			
		||||
 | 
			
		||||
	* gdk/gdk.c (gdk_event_translate): don't wipe out window_private's x
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,9 @@ Sat Feb  7 11:33:08 1998  Owen Taylor  <owt1@cornell.edu>
 | 
			
		||||
	  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>)
 | 
			
		||||
	
 | 
			
		||||
Sat Feb  7 02:29:01 1998  Tim Janik  <timj@gimp.org>
 | 
			
		||||
 | 
			
		||||
	* gdk/gdk.c (gdk_event_translate): don't wipe out window_private's x
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,9 @@ Sat Feb  7 11:33:08 1998  Owen Taylor  <owt1@cornell.edu>
 | 
			
		||||
	  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>)
 | 
			
		||||
	
 | 
			
		||||
Sat Feb  7 02:29:01 1998  Tim Janik  <timj@gimp.org>
 | 
			
		||||
 | 
			
		||||
	* gdk/gdk.c (gdk_event_translate): don't wipe out window_private's x
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,9 @@ Sat Feb  7 11:33:08 1998  Owen Taylor  <owt1@cornell.edu>
 | 
			
		||||
	  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>)
 | 
			
		||||
	
 | 
			
		||||
Sat Feb  7 02:29:01 1998  Tim Janik  <timj@gimp.org>
 | 
			
		||||
 | 
			
		||||
	* gdk/gdk.c (gdk_event_translate): don't wipe out window_private's x
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,9 @@ Sat Feb  7 11:33:08 1998  Owen Taylor  <owt1@cornell.edu>
 | 
			
		||||
	  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>)
 | 
			
		||||
	
 | 
			
		||||
Sat Feb  7 02:29:01 1998  Tim Janik  <timj@gimp.org>
 | 
			
		||||
 | 
			
		||||
	* gdk/gdk.c (gdk_event_translate): don't wipe out window_private's x
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,9 @@ Sat Feb  7 11:33:08 1998  Owen Taylor  <owt1@cornell.edu>
 | 
			
		||||
	  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>)
 | 
			
		||||
	
 | 
			
		||||
Sat Feb  7 02:29:01 1998  Tim Janik  <timj@gimp.org>
 | 
			
		||||
 | 
			
		||||
	* gdk/gdk.c (gdk_event_translate): don't wipe out window_private's x
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,9 @@ Sat Feb  7 11:33:08 1998  Owen Taylor  <owt1@cornell.edu>
 | 
			
		||||
	  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>)
 | 
			
		||||
	
 | 
			
		||||
Sat Feb  7 02:29:01 1998  Tim Janik  <timj@gimp.org>
 | 
			
		||||
 | 
			
		||||
	* gdk/gdk.c (gdk_event_translate): don't wipe out window_private's x
 | 
			
		||||
 | 
			
		||||
@ -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);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user