summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2016-07-19 22:42:10 +0930
committerAdrian Johnson <ajohnson@redneon.com>2016-07-19 22:42:53 +0930
commit56ad58a8078c5818d85b9c93ea4e3bc94ea887c8 (patch)
treeafbcff2936fde8b55d2545577fdaee20001548fc
parentd28b6d9b128675dfa9b3b6b793844144183aff64 (diff)
pdf: fix combined image/smask
a736fd8 introduced a regression
-rw-r--r--src/cairo-pdf-surface.c4
1 files 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;