comparison 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
comparison
equal deleted inserted replaced
50391:722e80f17fb3 50392:ed2cdbfe7417
1 /* Functions for the X window system. 1 /* Functions for the X window system.
2 Copyright (C) 1989, 92, 93, 94, 95, 96, 1997, 1998, 1999, 2000, 2001 2 Copyright (C) 1989, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 01, 02, 03
3 Free Software Foundation. 3 Free Software Foundation.
4 4
5 This file is part of GNU Emacs. 5 This file is part of GNU Emacs.
6 6
7 GNU Emacs is free software; you can redistribute it and/or modify 7 GNU Emacs is free software; you can redistribute it and/or modify
6244 { 6244 {
6245 color->pixel = lookup_rgb_color (f, color->red, color->green, 6245 color->pixel = lookup_rgb_color (f, color->red, color->green,
6246 color->blue); 6246 color->blue);
6247 p = xpm_cache_color (f, color_name, color, h); 6247 p = xpm_cache_color (f, color_name, color, h);
6248 } 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 }
6249 6257
6250 return p != NULL; 6258 return p != NULL;
6251 } 6259 }
6252 6260
6253 6261