(xpm_lookup_color): Grok "opaque".

This commit is contained in:
Dave Love 2003-04-01 10:04:38 +00:00
parent 3e6a560b5b
commit 9b8a0941bb

View file

@ -1,5 +1,5 @@
/* Functions for the X window system.
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
Free Software Foundation.
This file is part of GNU Emacs.
@ -6246,6 +6246,14 @@ xpm_lookup_color (f, color_name, color)
color->blue);
p = xpm_cache_color (f, color_name, color, h);
}
/* You get `opaque' at least from ImageMagick converting pbm to xpm
with transparency, and it's useful. */
else if (strcmp ("opaque", color_name) == 0)
{
bzero (color, sizeof (XColor)); /* Is this necessary/correct? */
color->pixel = FRAME_FOREGROUND_PIXEL (f);
p = xpm_cache_color (f, color_name, color, h);
}
return p != NULL;
}