1 |
/* Functions for the X window system. |
/* Functions for the X window system. |
2 |
Copyright (C) 1989, 92, 93, 94, 95, 96, 1997, 1998, 1999, 2000, 2001 |
Copyright (C) 1989, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 01, 02, 03 |
3 |
Free Software Foundation. |
Free Software Foundation. |
4 |
|
|
5 |
This file is part of GNU Emacs. |
This file is part of GNU Emacs. |
6246 |
color->blue); |
color->blue); |
6247 |
p = xpm_cache_color (f, color_name, color, h); |
p = xpm_cache_color (f, color_name, color, h); |
6248 |
} |
} |
6249 |
|
/* You get `opaque' at least from ImageMagick converting pbm to xpm |
6250 |
|
with transparency, and it's useful. */ |
6251 |
|
else if (strcmp ("opaque", color_name) == 0) |
6252 |
|
{ |
6253 |
|
bzero (color, sizeof (XColor)); /* Is this necessary/correct? */ |
6254 |
|
color->pixel = FRAME_FOREGROUND_PIXEL (f); |
6255 |
|
p = xpm_cache_color (f, color_name, color, h); |
6256 |
|
} |
6257 |
|
|
6258 |
return p != NULL; |
return p != NULL; |
6259 |
} |
} |