summaryrefslogtreecommitdiff
path: root/draw/imagedraw.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-05-10 16:49:34 +0200
committerTor Andersson <tor@ghostscript.com>2010-05-10 16:49:34 +0200
commitd690331355a38d36fe000d21c8b1ed7d87b235bc (patch)
treee63de2aa0ff67e3fbb7353567f19adf004bc1bab /draw/imagedraw.c
parentef1c4f064df8f292c1c8e986fe83c9f6c4c7d233 (diff)
downloadmupdf-d690331355a38d36fe000d21c8b1ed7d87b235bc.tar.xz
Use correct color index in image mask rendering. It still used the old indexes for non-premultiplied colors from back when the array had both non and premultiplied colors.
Diffstat (limited to 'draw/imagedraw.c')
-rw-r--r--draw/imagedraw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/draw/imagedraw.c b/draw/imagedraw.c
index 08a6d785..dded3a57 100644
--- a/draw/imagedraw.c
+++ b/draw/imagedraw.c
@@ -207,9 +207,9 @@ static void img_4o4(FZ_PSRC, FZ_PDST, FZ_PCTM)
static void img_w4i1o4(byte *argb, FZ_PSRC, FZ_PDST, FZ_PCTM)
{
byte alpha = argb[0];
- byte r = argb[4];
- byte g = argb[5];
- byte b = argb[6];
+ byte r = argb[1];
+ byte g = argb[2];
+ byte b = argb[3];
byte cov;
byte ca;
while (h--)