diff options
author | Robin Watts <robin.watts@artifex.com> | 2018-10-18 17:37:39 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2018-10-18 17:39:15 +0100 |
commit | 69ff417b417ed66b048f953d9e2b980ba8719385 (patch) | |
tree | 431a54001e6d06a56cbee644e2d569f2137f8c35 | |
parent | d80be068ec5c50a27199b949cbec03fc27adcc90 (diff) | |
download | mupdf-69ff417b417ed66b048f953d9e2b980ba8719385.tar.xz |
Bug 699971. Fix bad read of mask type from display list.
We pack the mask type and the color parameters into a byte. We
were unpacking it incorrectly, resulting in all masks being
treated as luminosity ones.
-rw-r--r-- | source/fitz/list-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/list-device.c b/source/fitz/list-device.c index 072ce1d5..6d6fcf41 100644 --- a/source/fitz/list-device.c +++ b/source/fitz/list-device.c @@ -1750,7 +1750,7 @@ visible: break; case FZ_CMD_BEGIN_MASK: fz_unpack_color_params(&color_params, n.flags); - fz_begin_mask(ctx, dev, trans_rect, n.flags, colorspace, color, &color_params); + fz_begin_mask(ctx, dev, trans_rect, n.flags & 1, colorspace, color, &color_params); break; case FZ_CMD_END_MASK: fz_end_mask(ctx, dev); |