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.

reviewed by: cworth
This commit is contained in:
Keith Packard 2005-10-09 14:28:15 +00:00
parent 951c7a6592
commit eeb56e713b
2 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2005-10-09 Keith Packard <keithp@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.
2005-10-09 Carl Worth <cworth@cworth.org>
* test/filter-nearest-offset.c: (draw):

View file

@ -711,7 +711,12 @@ emit_image (cairo_ps_surface_t *surface,
_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,