Mercurial > emacs
diff src/xfaces.c @ 10718:b4bfe218c4ca
(load_color): Ignore failure from XAllocColor.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 12 Feb 1995 01:25:58 +0000 |
parents | dd9afae74baf |
children | ebae5c953523 |
line wrap: on
line diff
--- a/src/xfaces.c Sun Feb 12 01:25:14 1995 +0000 +++ b/src/xfaces.c Sun Feb 12 01:25:58 1995 +0000 @@ -360,9 +360,9 @@ BLOCK_INPUT; result = XAllocColor (dpy, cmap, &color); UNBLOCK_INPUT; - if (! result) - Fsignal (Qerror, Fcons (build_string ("X server cannot allocate color"), - Fcons (name, Qnil))); + /* Ignore the return value of XallocColor, so that + we use a color close to the one requested + if we can't get the exact request. */ return (unsigned long) color.pixel; }