diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-12-04 16:47:49 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-12-04 16:47:49 +0000 |
commit | 76030813c71ed837173114ee5bcdd2cf083eee31 (patch) | |
tree | 1982f833efce3994af0d79514ddb2211a05c9467 /gdk-pixbuf/io-xpm.c | |
parent | f84b1ed087f2101878b61db5774d6314a5331dc5 (diff) | |
download | gdk-pixbuf-76030813c71ed837173114ee5bcdd2cf083eee31.tar.gz |
Fill in color fields to black for transparent colors since we'll later
Tue Dec 4 11:45:45 2001 Owen Taylor <otaylor@redhat.com>
* 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)
Diffstat (limited to 'gdk-pixbuf/io-xpm.c')
-rw-r--r-- | gdk-pixbuf/io-xpm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk-pixbuf/io-xpm.c b/gdk-pixbuf/io-xpm.c index b18a82e64..3efb4324a 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; } |