diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-04-28 19:42:45 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-04-28 19:45:56 +0100 |
commit | 858d56ff790966ea614a0217510cdf36d0496488 (patch) | |
tree | 0eacaa7c68b8b93b2f50d23a92a5114cd69f4e00 /source/pdf/pdf-image.c | |
parent | ad13312fc42a236750fbea697a07e4109fae8513 (diff) | |
download | mupdf-858d56ff790966ea614a0217510cdf36d0496488.tar.xz |
Fix JPX breakage caused during refactor.
I was using fz_compressed_image when I should have been using
fz_pixmap_image.
Diffstat (limited to 'source/pdf/pdf-image.c')
-rw-r--r-- | source/pdf/pdf-image.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/pdf/pdf-image.c b/source/pdf/pdf-image.c index 4fec9faa..51bb4583 100644 --- a/source/pdf/pdf-image.c +++ b/source/pdf/pdf-image.c @@ -37,9 +37,9 @@ pdf_load_image_imp(fz_context *ctx, pdf_document *doc, pdf_obj *rdb, pdf_obj *di if (forcemask) { - fz_compressed_image *cimg = (fz_compressed_image *)image; + fz_pixmap_image *cimg = (fz_pixmap_image *)image; fz_pixmap *mask_pixmap; - fz_pixmap *tile = fz_compressed_image_tile(ctx, cimg); + fz_pixmap *tile = fz_pixmap_image_tile(ctx, cimg); if (image->n != 2) { fz_pixmap *gray; @@ -52,7 +52,7 @@ pdf_load_image_imp(fz_context *ctx, pdf_document *doc, pdf_obj *rdb, pdf_obj *di } mask_pixmap = fz_alpha_from_gray(ctx, tile, 1); fz_drop_pixmap(ctx, tile); - fz_set_compressed_image_tile(ctx, cimg, mask_pixmap); + fz_set_pixmap_image_tile(ctx, cimg, mask_pixmap); } break; /* Out of fz_try */ } |