# HG changeset patch # User Richard M. Stallman # Date 792552358 0 # Node ID b4bfe218c4ca2b9a3d43e2e3d244c56df94cc281 # Parent e0f6b4ab74123785be86c684d5c6f7e42825cc17 (load_color): Ignore failure from XAllocColor. diff -r e0f6b4ab7412 -r b4bfe218c4ca src/xfaces.c --- 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; }