Commit 9b8a0941 authored by Dave Love's avatar Dave Love
Browse files

(xpm_lookup_color): Grok "opaque".

parent 3e6a560b
/* 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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment