summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-05-16 20:43:31 +0100
committerRobin Watts <robin.watts@artifex.com>2016-05-16 20:43:31 +0100
commit3cfdde1c1431d0ba3ca018b1dd79a384668d7d75 (patch)
treee28c21e95472e93572b59a096548fd9e39eabd1d /source
parent6bff94b4aa739eabede431320329ff5167e4884e (diff)
downloadmupdf-3cfdde1c1431d0ba3ca018b1dd79a384668d7d75.tar.xz
Fit another mistake in cmyk plotters.
Diffstat (limited to 'source')
-rw-r--r--source/fitz/draw-paint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/draw-paint.c b/source/fitz/draw-paint.c
index 1b90546c..acd4c0cb 100644
--- a/source/fitz/draw-paint.c
+++ b/source/fitz/draw-paint.c
@@ -622,7 +622,7 @@ fz_paint_span_with_mask_5(byte * restrict dp, byte * restrict sp, byte * restric
}
else if (ma == 256)
{
- masa = 255 - sp[1];
+ masa = 255 - sp[4];
if (masa == 0)
{
*dp++ = *sp++;
@@ -648,7 +648,7 @@ fz_paint_span_with_mask_5(byte * restrict dp, byte * restrict sp, byte * restric
}
else
{
- masa = FZ_COMBINE(sp[1], ma);
+ masa = FZ_COMBINE(sp[4], ma);
masa = 255 - masa;
masa = FZ_EXPAND(masa);
*dp = FZ_COMBINE2(*sp, ma, *dp, masa);