diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-06-30 03:37:25 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-06-30 03:37:25 +0200 |
commit | de914e08d64378696d73e708b6a06d1721997d45 (patch) | |
tree | eea187af1d5d7f392424d3fa00ce52d5d75dea9c | |
parent | c941535a5d1f9f2c0b217e8056efa2028aa05723 (diff) | |
download | mupdf-de914e08d64378696d73e708b6a06d1721997d45.tar.xz |
Fix typo in text_w4i1o4_32bit that picked up the wrong color components.
-rw-r--r-- | draw/archport.c | 4 |
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; |