summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2020-11-23 12:09:04 +1300
committerRobert Ancell <robert.ancell@canonical.com>2020-11-23 12:20:26 +1300
commit763d9861dfad804114eb8d0448ad9df740fb920a (patch)
tree9488712c7bce72b2000d76a6d88ed2e9dad41d36 /gdk-pixbuf
parentabc3e9c1753eeecf82e2aec42f957c51bb0cf8d8 (diff)
downloadgdk-pixbuf-763d9861dfad804114eb8d0448ad9df740fb920a.tar.gz
gif: Fix GIF images without a Graphic Control Extension rendering colour 0 as the background.
This was a regression introduced in 5212d69f2362f9b68ccf9385277e5c4a744b2187. Fixes https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/162
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/io-gif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c
index 07fee59cf..57e72d88b 100644
--- a/gdk-pixbuf/io-gif.c
+++ b/gdk-pixbuf/io-gif.c
@@ -792,6 +792,7 @@ new_context (GdkPixbufModuleSizeFunc size_func,
context->animation = g_object_new (GDK_TYPE_PIXBUF_GIF_ANIM, NULL);
context->frame = NULL;
+ context->transparent_index = -1;
context->file = NULL;
context->state = GIF_START;
context->size_func = size_func;