diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-08-02 12:11:03 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-10-24 15:16:35 +0100 |
commit | 5ca92b5a7166cb0304f9d30d0989b5379c7fa532 (patch) | |
tree | 13e8cd576815154304b34ed51f30f15bc4c02ab6 /source/fitz/draw-mesh.c | |
parent | 874cd7a3b8b803702f1d6ccb8c674e8662002e9b (diff) | |
download | mupdf-5ca92b5a7166cb0304f9d30d0989b5379c7fa532.tar.xz |
Fix overprint with shadings.
Diffstat (limited to 'source/fitz/draw-mesh.c')
-rw-r--r-- | source/fitz/draw-mesh.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/fitz/draw-mesh.c b/source/fitz/draw-mesh.c index b914a275..cd88d996 100644 --- a/source/fitz/draw-mesh.c +++ b/source/fitz/draw-mesh.c @@ -211,7 +211,7 @@ do_paint_tri(fz_context *ctx, void *arg, fz_vertex *av, fz_vertex *bv, fz_vertex } void -fz_paint_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_pixmap *dest, fz_colorspace *prf, const fz_color_params *color_params, const fz_irect *bbox) +fz_paint_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_pixmap *dest, fz_colorspace *prf, const fz_color_params *color_params, const fz_irect *bbox, const fz_overprint *op) { unsigned char clut[256][FZ_MAX_COLORS]; fz_pixmap *temp = NULL; @@ -293,8 +293,6 @@ fz_paint_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_pixmap /* Now Change from our device_n colorspace into the target colorspace/spots. */ conv = fz_clone_pixmap_area_with_different_seps(ctx, temp, NULL, dest->colorspace, dest->seps, color_params, prf, NULL); - fz_paint_pixmap(dest, conv, 255); - fz_drop_pixmap(ctx, conv); } else { @@ -340,9 +338,9 @@ fz_paint_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_pixmap d += conv->stride - conv->w * conv->n; s += temp->stride - temp->w * temp->n; } - fz_paint_pixmap(dest, conv, 255); - fz_drop_pixmap(ctx, conv); } + fz_paint_pixmap_with_overprint(dest, conv, op); + fz_drop_pixmap(ctx, conv); } } fz_always(ctx) |