From 4adda6ef1f42a1f527e0d65027b68d8ffde363fc Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Sat, 30 Oct 1999 23:17:06 +0000 Subject: quick hack to restore wotrkingness to regular gifs. Creates a RGBA buffer independent of the gif type. I'll try to get it right later. --- gdk-pixbuf/io-gif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdk-pixbuf') diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c index d3bbcbfed..1e3781301 100644 --- a/gdk-pixbuf/io-gif.c +++ b/gdk-pixbuf/io-gif.c @@ -382,7 +382,7 @@ ReadImage (FILE *file, } context->pixbuf = gdk_pixbuf_new (ART_PIX_RGB, - context->gif89.transparent, + TRUE,//context->gif89.transparent, 8, context->width, context->height); @@ -390,7 +390,7 @@ ReadImage (FILE *file, dest = gdk_pixbuf_get_pixels (context->pixbuf); while ((v = LWZReadByte (file, FALSE, c)) >= 0) { // g_print ("in inner loop: xpos = %d, ypos = %d\n", xpos, ypos); - if (context->gif89.transparent) { + if (TRUE || context->gif89.transparent) { temp = dest + (ypos * len + xpos) * 4; *temp = cmap [0][(guchar) v]; *(temp+1) = cmap [1][(guchar) v]; -- cgit v1.2.1