From 5d07ed68ae0651cb90f5bb8074a9399e96024fbb Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 24 Apr 2010 17:42:30 +0200 Subject: Only pass non-pre-multiplied color to the w4i1o4 functions. --- draw/porterduff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'draw') diff --git a/draw/porterduff.c b/draw/porterduff.c index 59e41ccc..c6b3dc9b 100644 --- a/draw/porterduff.c +++ b/draw/porterduff.c @@ -312,9 +312,9 @@ static void text_1o1(byte * restrict src0, int srcw, byte * restrict dst0, int d static void text_w4i1o4(byte * restrict argb, byte * restrict src0, int srcw, byte * restrict dst0, int dstw, int w0, int h) { unsigned char alpha = argb[0]; - unsigned char r = argb[4]; - unsigned char g = argb[5]; - unsigned char b = argb[6]; + unsigned char r = argb[1]; + unsigned char g = argb[2]; + unsigned char b = argb[3]; while (h--) { byte *src = src0; -- cgit v1.2.3