summaryrefslogtreecommitdiff
path: root/draw
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-06-23 11:46:05 +0200
committerTor Andersson <tor@ghostscript.com>2010-06-23 11:46:05 +0200
commit81644baeebfb2edaebe3839b7763595eb0e94be2 (patch)
treed4153bfba5a8e5396243eaa66427718d26b7e49f /draw
parent685f0177891376b1d0e02de5c95d9ec3175228b3 (diff)
downloadmupdf-81644baeebfb2edaebe3839b7763595eb0e94be2.tar.xz
Fix typo.
Diffstat (limited to 'draw')
-rw-r--r--draw/porterduff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/porterduff.c b/draw/porterduff.c
index 4616e3fa..fd7a9d45 100644
--- a/draw/porterduff.c
+++ b/draw/porterduff.c
@@ -20,7 +20,7 @@ duff_non(byte * restrict sp, int sw, int sn, byte * restrict dp, int dw, int w0,
{
/* RJW: Alpha handling suspicious here; sp[0] counts twice */
int sa = FZ_EXPAND(sp[0]);
- dp[0] = FZ_BLEND(255, dp[k], sa);
+ dp[0] = FZ_BLEND(255, dp[0], sa);
for (k = 1; k < sn; k++)
{
dp[k] = FZ_BLEND(sp[k], dp[k], sa);
@@ -48,7 +48,7 @@ duff_nimon(byte * restrict sp, int sw, int sn, byte * restrict mp, int mw, int m
{
/* TODO: validate this */
int ma = FZ_COMBINE(FZ_EXPAND(mp[0]), FZ_EXPAND(sp[0]));
- dp[k] = FZ_BLEND(255, dp[k], ma);
+ dp[0] = FZ_BLEND(255, dp[0], ma);
for (k = 1; k < sn; k++)
{
dp[k] = FZ_BLEND(sp[k], dp[k], ma);