From 56ad58a8078c5818d85b9c93ea4e3bc94ea887c8 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Tue, 19 Jul 2016 22:42:10 +0930 Subject: pdf: fix combined image/smask a736fd8 introduced a regression --- src/cairo-pdf-surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c index 436bff092..09094ff49 100644 --- a/src/cairo-pdf-surface.c +++ b/src/cairo-pdf-surface.c @@ -1327,7 +1327,7 @@ _get_source_surface_extents (cairo_surface_t *source, * @stencil_mask: [in] if true, the surface will be written to the PDF as an /ImageMask * @smask: [in] if true, only the alpha channel will be written (images only) * @extents: [in] extents of the operation that is using this source - * @smask_res: [out] if not NULL, the image written will specify this resource as the smask for + * @smask_res: [in] if not NULL, the image written will specify this resource as the smask for * the image (images only) * @pdf_source: [out] return pdf_source_surface entry in hash table * @x_offset: [out] if not NULL return x offset of surface @@ -6925,7 +6925,7 @@ _cairo_pdf_surface_emit_combined_smask (cairo_pdf_surface_t *surface, _cairo_output_stream_printf (surface->output, "q\n"); status = _cairo_pdf_surface_paint_surface_pattern (surface, op, source, extents, - need_smask ? &pdf_source->smask_res : NULL, + need_smask ? &pdf_source->surface_res : NULL, FALSE); if (unlikely (status)) return status; -- cgit v1.2.3