summaryrefslogtreecommitdiff
path: root/draw
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-07-23 18:48:27 +0000
committerTor Andersson <tor@ghostscript.com>2010-07-23 18:48:27 +0000
commit231e3938974ea89047a10b3c4eeb605be87fc45d (patch)
treec93fa2a25cfe6c0e8f2ddf94f8b3c45cea0b9449 /draw
parentc2992c2f3567a02772a420ad132180d42854d71b (diff)
downloadmupdf-231e3938974ea89047a10b3c4eeb605be87fc45d.tar.xz
Fix typo in grayscale image sampling.
Diffstat (limited to 'draw')
-rw-r--r--draw/imagedraw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/imagedraw.c b/draw/imagedraw.c
index e50233de..a626deb7 100644
--- a/draw/imagedraw.c
+++ b/draw/imagedraw.c
@@ -113,7 +113,7 @@ samplega(byte *s, int w, int h, int u, int v, int *gout, int *aout)
lerpga(cd, c, d, ud);
lerpga(abcd, ab, cd, vd);
*gout = abcd[0];
- *aout = abcd[0];
+ *aout = abcd[1];
#endif
}