summaryrefslogtreecommitdiff
path: root/apps/pdfdraw.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2010-06-29 21:56:34 +0200
committerRobin Watts <robin.watts@artifex.com>2010-06-29 21:56:34 +0200
commit7748021cc09a52fbb12fc33d7e84806890394249 (patch)
tree692a594b52bb72b55247a0db7b1095783d552b17 /apps/pdfdraw.c
parentd9661dcb35f70cbd5019db4320cd24d6dbae584a (diff)
downloadmupdf-7748021cc09a52fbb12fc33d7e84806890394249.tar.xz
Move over to RGBA instead of ARGB. Add missing gray-alpha 'duff' functions.
Diffstat (limited to 'apps/pdfdraw.c')
-rw-r--r--apps/pdfdraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/pdfdraw.c b/apps/pdfdraw.c
index 73170eb4..40faba0f 100644
--- a/apps/pdfdraw.c
+++ b/apps/pdfdraw.c
@@ -251,8 +251,8 @@ static void drawpnm(int pagenum, struct benchmark *loadtimes, struct benchmark *
for (x = pix->w; x > 0; x--)
{
- src++;
*dst++ = *src++;
+ src++;
}
dst -= pix->w;
@@ -267,10 +267,10 @@ static void drawpnm(int pagenum, struct benchmark *loadtimes, struct benchmark *
for (x = pix->w; x > 0; x--)
{
- src++;
*dst++ = *src++;
*dst++ = *src++;
*dst++ = *src++;
+ src++;
}
dst -= pix->w * 3;