Mercurial > emacs
changeset 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 | e0f6b4ab7412 |
children | 40ae63b409f4 |
files | src/xfaces.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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; }