use the same code for GDK_XOR as for GDK_INVERT. Xor with an arbitrary

2007-06-07  Michael Natterer  <mitch@imendio.com>

	* gdk/quartz/gdkgc-quartz.c (_gdk_quartz_gc_update_cg_context):
	use the same code for GDK_XOR as for GDK_INVERT. Xor with an
	arbitrary color is impossible to implement with quartz.


svn path=/trunk/; revision=18077
This commit is contained in:
Michael Natterer 2007-06-07 18:25:15 +00:00 committed by Michael Natterer
parent 8210544708
commit 88a05af64f
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2007-06-07 Michael Natterer <mitch@imendio.com>
* gdk/quartz/gdkgc-quartz.c (_gdk_quartz_gc_update_cg_context):
use the same code for GDK_XOR as for GDK_INVERT. Xor with an
arbitrary color is impossible to implement with quartz.
2007-06-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksettings.c: Fix a typo in the docs.

View File

@ -410,15 +410,12 @@ _gdk_quartz_gc_update_cg_context (GdkGC *gc,
break;
case GDK_INVERT:
case GDK_XOR:
blend_mode = kCGBlendModeExclusion;
fg_pixel = 0xffffffff;
bg_pixel = 0xffffffff;
break;
case GDK_XOR:
blend_mode = kCGBlendModeExclusion;
break;
case GDK_CLEAR:
case GDK_AND:
case GDK_AND_REVERSE: