From d690331355a38d36fe000d21c8b1ed7d87b235bc Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 10 May 2010 16:49:34 +0200 Subject: 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. --- draw/imagedraw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'draw') 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--) -- cgit v1.2.3