From: Richard M. Stallman Date: Sun, 12 Feb 1995 01:25:58 +0000 (+0000) Subject: (load_color): Ignore failure from XAllocColor. X-Git-Tag: emacs-19.34~5140 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1f98e9ea8b412bc79b62580ea25566dc3a806fb5;p=emacs.git (load_color): Ignore failure from XAllocColor. --- diff --git a/src/xfaces.c b/src/xfaces.c index 36c3c1ab470..2b235e0c0c3 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -360,9 +360,9 @@ load_color (f, name) 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; }