summaryrefslogtreecommitdiff
path: root/source/fitz/draw-paint.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/draw-paint.c')
-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);