diff options
Diffstat (limited to 'source/cbz')
-rw-r--r-- | source/cbz/mucbz.c | 6 | ||||
-rw-r--r-- | source/cbz/muimg.c | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index ddf3c553..5cbdf0ca 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -151,7 +151,7 @@ cbz_bound_page(fz_context *ctx, fz_page *page_) } static void -cbz_run_page(fz_context *ctx, fz_page *page_, fz_device *dev, const fz_matrix *ctm, fz_cookie *cookie) +cbz_run_page(fz_context *ctx, fz_page *page_, fz_device *dev, fz_matrix ctm, fz_cookie *cookie) { cbz_page *page = (cbz_page*)page_; fz_matrix local_ctm; @@ -162,8 +162,8 @@ cbz_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); + local_ctm = fz_pre_scale(ctm, w, h); + fz_fill_image(ctx, dev, image, local_ctm, 1, NULL); } static void 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 |