summaryrefslogtreecommitdiff
path: root/draw
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-06-30 03:37:25 +0200
committerTor Andersson <tor@ghostscript.com>2010-06-30 03:37:25 +0200
commitde914e08d64378696d73e708b6a06d1721997d45 (patch)
treeeea187af1d5d7f392424d3fa00ce52d5d75dea9c /draw
parentc941535a5d1f9f2c0b217e8056efa2028aa05723 (diff)
downloadmupdf-de914e08d64378696d73e708b6a06d1721997d45.tar.xz
Fix typo in text_w4i1o4_32bit that picked up the wrong color components.
Diffstat (limited to 'draw')
-rw-r--r--draw/archport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/archport.c b/draw/archport.c
index 337ad3c1..a4601328 100644
--- a/draw/archport.c
+++ b/draw/archport.c
@@ -83,8 +83,8 @@ text_w4i1o4_32bit(byte * restrict rgba,
{
unsigned int *dst32 = (unsigned int *)(void *)dst;
unsigned int alpha = rgba[3];
- unsigned int rb = rgba[1] | (rgba[2] << 16);
- unsigned int ga = rgba[2] | 0xFF0000;
+ unsigned int rb = rgba[0] | (rgba[2] << 16);
+ unsigned int ga = rgba[1] | 0xFF0000;
if (alpha == 0)
return;