From a40193b55d85a47ab952351346cfc347d4822a04 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 1 Jul 2003 11:22:47 +0000 Subject: [project @ 2003-07-01 11:22:47 by bursa] Fix transparency bug. svn path=/import/netsurf/; revision=196 --- riscos/gif.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/riscos/gif.c b/riscos/gif.c index 1382b63c8..4adaa8a10 100644 --- a/riscos/gif.c +++ b/riscos/gif.c @@ -103,8 +103,9 @@ int nsgif_convert(struct content *c, unsigned int iwidth, unsigned int iheight) osspriteop_area *sprite_area; osspriteop_header *sprite; // The next three lines are for vars. used by the gif decoding engine - int recordtype, extcode, count, got_image_data; - int trancol; + GifRecordType recordtype; + int extcode, count, got_image_data; + int trancol = -1; GifByteType *extension; GifColorType *colormap; @@ -236,7 +237,7 @@ int nsgif_convert(struct content *c, unsigned int iwidth, unsigned int iheight) } } while (recordtype != TERMINATE_RECORD_TYPE); - LOG(("creating image transparency mask")); + LOG(("creating image transparency mask, trancol %i", trancol)); // This is one evil piece of code. Still, it works... for (j=0; j