[cairo-commit] cairo/src cairo-ps-surface.c,1.50,1.51

Keith Packard commit at pdx.freedesktop.org
Sun Oct 9 14:28:17 PDT 2005


Committed by: keithp

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv21493/src

Modified Files:
	cairo-ps-surface.c 
Log Message:
2005-10-09  Keith Packard  <keithp at keithp.com>

	reviewed by: cworth

	* src/cairo-ps-surface.c: (emit_image):
	The comment said 'blend over white', the code
	did 'blend under garbage'. I made the code look
	like the comment. More tests pass now. mmm.


Index: cairo-ps-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-ps-surface.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- cairo-ps-surface.c	24 Aug 2005 08:47:13 -0000	1.50
+++ cairo-ps-surface.c	9 Oct 2005 21:28:15 -0000	1.51
@@ -711,7 +711,12 @@
     
 	_cairo_pattern_init_for_surface (&pattern.surface, &image->base);
     
-	_cairo_surface_composite (CAIRO_OPERATOR_DEST_OVER,
+	_cairo_surface_fill_rectangle (opaque,
+				       CAIRO_OPERATOR_SOURCE,
+				       CAIRO_COLOR_WHITE,
+				       0, 0, image->width, image->height);
+
+	_cairo_surface_composite (CAIRO_OPERATOR_OVER,
 				  &pattern.base,
 				  NULL,
 				  opaque,



More information about the cairo-commit mailing list