From c525bc49255c1054e457d3238ffaca4260e47f8c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 20 Mar 2003 23:11:58 +0000 Subject: [PATCH] call the correct read functions for 32 bit rle expansion --- libs/util/tga.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/util/tga.c b/libs/util/tga.c index a79a23a5c..e5d21556c 100644 --- a/libs/util/tga.c +++ b/libs/util/tga.c @@ -242,7 +242,7 @@ do { \ pixcol = pixrow; \ pixrow += span; \ if (rows-- <= 0) \ - goto done_##expand; \ + goto done_##expand; \ } \ column -= packetSize; \ if (packetHeader & 0x80) { /* run-length packet */ \ @@ -253,7 +253,7 @@ do { \ } \ } \ } \ - done_##expand:; \ + done_##expand:; \ } while (0) static void @@ -285,9 +285,9 @@ decode_truecolor_32_rle (TargaHeader *targa, tex_t *tex, byte *dataByte) setup_pixrow_span (targa, tex, &pixrow, &span); if (targa->attributes & 0x10) - rle_expand (reverse_read_bgr); + rle_expand (reverse_read_bgra); else - rle_expand (read_bgr); + rle_expand (read_bgra); } struct tex_s *