diff options
author | James Bursa <james@netsurf-browser.org> | 2003-07-01 11:22:47 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-07-01 11:22:47 +0000 |
commit | a40193b55d85a47ab952351346cfc347d4822a04 (patch) | |
tree | a46176c2baad1ffc11334f52f8df41db19d513a2 /riscos/gif.c | |
parent | f3f8ca720a63e026240e8e42ce8ef16bb0b528e2 (diff) | |
download | netsurf-a40193b55d85a47ab952351346cfc347d4822a04.tar.gz netsurf-a40193b55d85a47ab952351346cfc347d4822a04.tar.bz2 |
[project @ 2003-07-01 11:22:47 by bursa]
Fix transparency bug.
svn path=/import/netsurf/; revision=196
Diffstat (limited to 'riscos/gif.c')
-rw-r--r-- | riscos/gif.c | 7 |
1 files 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<height; j++) |