Mercurial > emacs
diff src/xfns.c @ 50392:ed2cdbfe7417
(xpm_lookup_color): Grok "opaque".
| author | Dave Love <fx@gnu.org> |
|---|---|
| date | Tue, 01 Apr 2003 10:04:38 +0000 |
| parents | 0c01548d7ed3 |
| children | 0e2a60d0ca7b |
line wrap: on
line diff
--- a/src/xfns.c Tue Apr 01 09:57:22 2003 +0000 +++ b/src/xfns.c Tue Apr 01 10:04:38 2003 +0000 @@ -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 @@ 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; }
