diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-06-29 16:46:17 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-07-05 15:32:34 +0200 |
commit | ea7403b4c172338dfe7f371302f82859921e60af (patch) | |
tree | 4a3fbf8ea35cb53fcbf395f096cf61ffda7b40be /source/cbz/muimg.c | |
parent | 4a99615a609eec2b84bb2341d74fac46a5998137 (diff) | |
download | mupdf-ea7403b4c172338dfe7f371302f82859921e60af.tar.xz |
Pass matrices by value: device and document interface.
Diffstat (limited to 'source/cbz/muimg.c')
-rw-r--r-- | source/cbz/muimg.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/cbz/muimg.c b/source/cbz/muimg.c index bc7e6e92..b54371fa 100644 --- a/source/cbz/muimg.c +++ b/source/cbz/muimg.c @@ -52,10 +52,9 @@ img_bound_page(fz_context *ctx, fz_page *page_) } static void -img_run_page(fz_context *ctx, fz_page *page_, fz_device *dev, const fz_matrix *ctm, fz_cookie *cookie) +img_run_page(fz_context *ctx, fz_page *page_, fz_device *dev, fz_matrix ctm, fz_cookie *cookie) { img_page *page = (img_page*)page_; - fz_matrix local_ctm; fz_image *image = page->image; int xres, yres; float w, h; @@ -63,8 +62,8 @@ img_run_page(fz_context *ctx, fz_page *page_, fz_device *dev, const fz_matrix *c fz_image_resolution(image, &xres, &yres); w = image->w * DPI / xres; h = image->h * DPI / yres; - local_ctm = fz_pre_scale(*ctm, w, h); - fz_fill_image(ctx, dev, image, &local_ctm, 1, NULL); + ctm = fz_pre_scale(ctm, w, h); + fz_fill_image(ctx, dev, image, ctm, 1, NULL); } static void |