From de914e08d64378696d73e708b6a06d1721997d45 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 30 Jun 2010 03:37:25 +0200 Subject: Fix typo in text_w4i1o4_32bit that picked up the wrong color components. --- draw/archport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'draw') 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; -- cgit v1.2.3