summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-09-26 12:34:50 +0100
committerRobin Watts <robin.watts@artifex.com>2017-10-24 15:16:37 +0100
commit6a92b90ac4c581c1d7c2c1322ece0e99e920e3df (patch)
treebadcad605e3b29bca543deff749341bcedbea5e1
parent79bc9c182e74bcd58c6de33be8dfeb384a07199b (diff)
downloadmupdf-6a92b90ac4c581c1d7c2c1322ece0e99e920e3df.tar.xz
Fix spot blend routine forgetting to complement in RGB process spaces.
-rw-r--r--source/fitz/draw-blend.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/fitz/draw-blend.c b/source/fitz/draw-blend.c
index 6c2c58c7..6413dd7c 100644
--- a/source/fitz/draw-blend.c
+++ b/source/fitz/draw-blend.c
@@ -765,10 +765,7 @@ fz_blend_separable_nonisolated(byte * restrict bp, int bal, const byte * restric
if (ra0 != 0)
rc += fz_mul255(ra0, bc);
- if (complement)
- rc = ra - rc;
-
- bp[k] = rc;
+ bp[k] = ra - rc;
}
break;
}