summaryrefslogtreecommitdiff
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
parent685f0177891376b1d0e02de5c95d9ec3175228b3 (diff)
downloadmupdf-81644baeebfb2edaebe3839b7763595eb0e94be2.tar.xz
Fix typo.
-rw-r--r--draw/porterduff.c4
-rw-r--r--mupdf/pdf_pagetree.c2
2 files changed, 3 insertions, 3 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);
diff --git a/mupdf/pdf_pagetree.c b/mupdf/pdf_pagetree.c
index 086dec7e..1c5f9e20 100644
--- a/mupdf/pdf_pagetree.c
+++ b/mupdf/pdf_pagetree.c
@@ -122,4 +122,4 @@ pdf_loadpagetree(pdf_xref *xref)
pdf_loadpagetreenode(xref, pages, info);
return fz_okay;
-} \ No newline at end of file
+}