[cairo-commit] src/cairo-pdf-surface.c
Adrian Johnson
ajohnson at kemper.freedesktop.org
Tue Jul 19 13:14:00 UTC 2016
src/cairo-pdf-surface.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 56ad58a8078c5818d85b9c93ea4e3bc94ea887c8
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Tue Jul 19 22:42:10 2016 +0930
pdf: fix combined image/smask
a736fd8 introduced a regression
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index 436bff0..09094ff 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;
More information about the cairo-commit
mailing list