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