From 76030813c71ed837173114ee5bcdd2cf083eee31 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Tue, 4 Dec 2001 16:47:49 +0000 Subject: [PATCH] Fill in color fields to black for transparent colors since we'll later Tue Dec 4 11:45:45 2001 Owen Taylor * io-xpm.c (pixbuf_create_from_xpm): Fill in color fields to black for transparent colors since we'll later initialize pixels from them. (Fixes purify errors, #66093, HideToshi Tajima) --- gdk-pixbuf/ChangeLog | 7 +++++++ gdk-pixbuf/io-xpm.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 75853d2427..1ffdffc86e 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,10 @@ +Tue Dec 4 11:45:45 2001 Owen Taylor + + * io-xpm.c (pixbuf_create_from_xpm): Fill in color + fields to black for transparent colors since we'll + later initialize pixels from them. (Fixes purify + errors, #66093, HideToshi Tajima) + 2001-11-30 Tor Lillqvist * gdk_pixbuf.def: Add gdk_pixbuf_get_option. diff --git a/gdk-pixbuf/io-xpm.c b/gdk-pixbuf/io-xpm.c index b18a82e640..3efb4324a0 100644 --- a/gdk-pixbuf/io-xpm.c +++ b/gdk-pixbuf/io-xpm.c @@ -1300,6 +1300,9 @@ pixbuf_create_from_xpm (const gchar * (*get_buf) (enum buf_op op, gpointer handl if ((color_name == NULL) || (g_strcasecmp (color_name, "None") == 0) || (parse_color (color_name, color) == FALSE)) { color->transparent = TRUE; + color->red = 0; + color->green = 0; + color->blue = 0; is_trans = TRUE; }