From 013559fe8b1cf0907529efb808fc419ed1cae7a2 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 1 Mar 2013 00:17:19 +0000 Subject: 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. --- pdf/pdf_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3