summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@src.gnome.org>1999-10-30 23:17:06 +0000
committerJonathan Blandford <jrb@src.gnome.org>1999-10-30 23:17:06 +0000
commit4adda6ef1f42a1f527e0d65027b68d8ffde363fc (patch)
treef6a70cddd43d218763e73e4986be0783dd87d576 /gdk-pixbuf
parentbcad6d85980bf6a1e8298408994930fda92a3ce1 (diff)
downloadgdk-pixbuf-4adda6ef1f42a1f527e0d65027b68d8ffde363fc.tar.gz
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.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/io-gif.c4
1 files changed, 2 insertions, 2 deletions
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];