diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2009-08-31 22:14:15 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2009-08-31 23:13:32 +0930 |
commit | 119355b2a4d81c903720484adaeb7dea3929ca1f (patch) | |
tree | 2280005ed9efb27360244ee97a4aa4998c749809 | |
parent | 20bd7d0edbb01a52bcc88bddcba4cc5237f3a673 (diff) |
PDF: Reset alpha to 1.0 before painting a surface
Fixes a test suite regression.
-rw-r--r-- | src/cairo-pdf-surface.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c index 8a6a83f3..577d7e5d 100644 --- a/src/cairo-pdf-surface.c +++ b/src/cairo-pdf-surface.c @@ -3272,6 +3272,7 @@ _cairo_pdf_surface_paint_surface_pattern (cairo_pdf_surface_t *surface, int width, height; cairo_matrix_t cairo_p2d, pdf_p2d; cairo_status_t status; + int alpha; status = _cairo_pdf_surface_add_source_surface (surface, source->surface, @@ -3302,8 +3303,13 @@ _cairo_pdf_surface_paint_surface_pattern (cairo_pdf_surface_t *surface, pdf_p2d.x0, pdf_p2d.y0); } + status = _cairo_pdf_surface_add_alpha (surface, 1.0, &alpha); + if (unlikely (status)) + return status; + _cairo_output_stream_printf (surface->output, - "/x%d Do\n", + "/a%d gs /x%d Do\n", + alpha, surface_res.id); return _cairo_pdf_surface_add_xobject (surface, surface_res); |