summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-03-01 00:17:19 +0000
committerRobin Watts <robin.watts@artifex.com>2013-03-01 00:20:37 +0000
commit013559fe8b1cf0907529efb808fc419ed1cae7a2 (patch)
tree42ebe915de54fa9a6c42da58ef3a5f36fd686d8f
parent5d63cf651367bee808d653213c7af7a31ad833ce (diff)
downloadmupdf-013559fe8b1cf0907529efb808fc419ed1cae7a2.tar.xz
Fix JPX Softmasks being all FF's.
My previous JPX softmask commit was forcing fz_alpha_to_gray to be called with luminosity = 0, which meant it ended up with solid pixels. This fix actually reverts the line to what it was before (but not the rest of the commit). hivemind.pdf is still far from rendering correctly though.
-rw-r--r--pdf/pdf_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_image.c b/pdf/pdf_image.c
index f87ba00d..a756b648 100644
--- a/pdf/pdf_image.c
+++ b/pdf/pdf_image.c
@@ -335,7 +335,7 @@ pdf_load_image_imp(pdf_document *xref, pdf_obj *rdb, pdf_obj *dict, fz_stream *c
fz_pixmap *mask_pixmap;
if (image->n != 2)
fz_throw(ctx, "soft mask must be grayscale");
- mask_pixmap = fz_alpha_from_gray(ctx, image->tile, 0);
+ mask_pixmap = fz_alpha_from_gray(ctx, image->tile, 1);
fz_drop_pixmap(ctx, image->tile);
image->tile = mask_pixmap;
}