diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-04-24 17:42:30 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-04-24 17:42:30 +0200 |
commit | 5d07ed68ae0651cb90f5bb8074a9399e96024fbb (patch) | |
tree | a1999462b38eff130de5b32559b2740508ce7e45 /draw | |
parent | 7c51bb4750d689115b93c3cfbe317c691a25a6d3 (diff) | |
download | mupdf-5d07ed68ae0651cb90f5bb8074a9399e96024fbb.tar.xz |
Only pass non-pre-multiplied color to the w4i1o4 functions.
Diffstat (limited to 'draw')
-rw-r--r-- | draw/porterduff.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |