From ea7403b4c172338dfe7f371302f82859921e60af Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 29 Jun 2018 16:46:17 +0200 Subject: Pass matrices by value: device and document interface. --- source/fitz/draw-mesh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/fitz/draw-mesh.c') diff --git a/source/fitz/draw-mesh.c b/source/fitz/draw-mesh.c index 5a3bef40..3b08c1e1 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, fz_colorspace *colorspace, const fz_matrix *ctm, fz_pixmap *dest, const fz_color_params *color_params, const fz_irect *bbox, const fz_overprint *op) +fz_paint_shade(fz_context *ctx, fz_shade *shade, fz_colorspace *colorspace, fz_matrix ctm, fz_pixmap *dest, 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; @@ -230,7 +230,7 @@ fz_paint_shade(fz_context *ctx, fz_shade *shade, fz_colorspace *colorspace, cons fz_try(ctx) { - local_ctm = fz_concat(shade->matrix, *ctm); + local_ctm = fz_concat(shade->matrix, ctm); if (shade->use_function) { -- cgit v1.2.3