From 6bebcd99ae7f1935c1554b9043eff966b50780a2 Mon Sep 17 00:00:00 2001 From: Alex Marshall Date: Tue, 19 May 2009 23:02:57 -0700 Subject: Garrr, i needed to be reset every 8 pixels. --- zetsubou/tpl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'zetsubou/tpl.c') diff --git a/zetsubou/tpl.c b/zetsubou/tpl.c index 9060d5e..1e80b16 100644 --- a/zetsubou/tpl.c +++ b/zetsubou/tpl.c @@ -132,6 +132,7 @@ int TPL_ConvertRGBA8ToBitMap(u8* tplbuf, u32 tplsize, u32 tplpoint, u8** bitmapd } } iv++; + if(iv == 8) i = 0; // Gotta reset i every 8 "pixels"! if(iv >= 16) iv = 0; // Swap every 16 "pixels"! } } -- cgit v1.3.1