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)
This commit is contained in:
Owen Taylor 2001-12-04 16:47:49 +00:00 committed by Owen Taylor
parent f84b1ed087
commit 76030813c7
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
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)
2001-11-30 Tor Lillqvist <tml@iki.fi>
* gdk_pixbuf.def: Add gdk_pixbuf_get_option.

View File

@ -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;
}