forked from AuroraMiddleware/gtk
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:
parent
f84b1ed087
commit
76030813c7
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user