summaryrefslogtreecommitdiff
path: root/source/fitz/image.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-06-29 16:46:17 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-07-05 15:32:34 +0200
commitea7403b4c172338dfe7f371302f82859921e60af (patch)
tree4a3fbf8ea35cb53fcbf395f096cf61ffda7b40be /source/fitz/image.c
parent4a99615a609eec2b84bb2341d74fac46a5998137 (diff)
downloadmupdf-ea7403b4c172338dfe7f371302f82859921e60af.tar.xz
Pass matrices by value: device and document interface.
Diffstat (limited to 'source/fitz/image.c')
-rw-r--r--source/fitz/image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/fitz/image.c b/source/fitz/image.c
index 8cda9687..7936adf8 100644
--- a/source/fitz/image.c
+++ b/source/fitz/image.c
@@ -252,7 +252,7 @@ static void fz_adjust_image_subarea(fz_context *ctx, fz_image *image, fz_irect *
subarea->y1 = image->h;
}
-static void fz_compute_image_key(fz_context *ctx, fz_image *image, const fz_matrix *ctm,
+static void fz_compute_image_key(fz_context *ctx, fz_image *image, fz_matrix *ctm,
fz_image_key *key, const fz_irect *subarea, int l2factor, int *w, int *h, int *dw, int *dh)
{
key->refs = 1;
@@ -1142,10 +1142,10 @@ display_list_image_get_pixmap(fz_context *ctx, fz_image *image_, fz_irect *subar
ctm = fz_pre_scale(image->transform, w, h);
fz_clear_pixmap(ctx, pix); /* clear to transparent */
- dev = fz_new_draw_device(ctx, &ctm, pix);
+ dev = fz_new_draw_device(ctx, ctm, pix);
fz_try(ctx)
{
- fz_run_display_list(ctx, image->list, dev, &fz_identity, NULL, NULL);
+ fz_run_display_list(ctx, image->list, dev, fz_identity, NULL, NULL);
fz_close_device(ctx, dev);
}
fz_always(ctx)