diff options
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) |