From 763d9861dfad804114eb8d0448ad9df740fb920a Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Mon, 23 Nov 2020 12:09:04 +1300 Subject: 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 --- gdk-pixbuf/io-gif.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdk-pixbuf') 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; -- cgit v1.2.1