summaryrefslogtreecommitdiff
path: root/raster/porterduff.c
diff options
context:
space:
mode:
authorGlenn Kennard <glenn.kennard@gmail.com>2008-03-21 02:34:47 +0100
committerGlenn Kennard <glenn.kennard@gmail.com>2008-03-21 02:34:47 +0100
commit3e9200955bf75860835f1499fa699d2c0460cbcb (patch)
tree919eda547fa4e8bc5d38f88f96437b42dcbdf98d /raster/porterduff.c
parent783f538d4ee8e87bfd911345c903052b29b92338 (diff)
downloadmupdf-3e9200955bf75860835f1499fa699d2c0460cbcb.tar.xz
Yup, premul alpha. Also, vectorize rendersolid.
Diffstat (limited to 'raster/porterduff.c')
-rw-r--r--raster/porterduff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/raster/porterduff.c b/raster/porterduff.c
index fdc42951..0521362e 100644
--- a/raster/porterduff.c
+++ b/raster/porterduff.c
@@ -270,7 +270,7 @@ static void path_w3i1o4(byte * restrict argb, byte * restrict src, int cov, int
cov += *src; *src = 0; src++;
a = fz_mul255(cov, ca);
ssa = 255 - a;
- dst[0] = cov + fz_mul255(dst[0], ssa);
+ dst[0] = a + fz_mul255(dst[0], ssa);
dst[1] = rgb0 + fz_mul255((short)dst[1] - rgb0, ssa);
dst[2] = rgb1 + fz_mul255((short)dst[2] - rgb1, ssa);
dst[3] = rgb2 + fz_mul255((short)dst[3] - rgb2, ssa);