# HG changeset patch # User Karl Heuer # Date 802373701 0 # Node ID 74b296435fd9c44c5b507bb5e9eb60bc7a06aa6a # Parent ee38e93ccf7ef86186d0aaf10bd845af5b43f4e9 (load_color): misleading comment rewritten. diff -r ee38e93ccf7e -r 74b296435fd9 src/xfaces.c --- a/src/xfaces.c Mon Jun 05 17:32:51 1995 +0000 +++ b/src/xfaces.c Mon Jun 05 17:35:01 1995 +0000 @@ -347,13 +347,12 @@ return FACE_DEFAULT; CHECK_STRING (name, 0); + /* if the colormap is full, defined_color will return a best match + to the values in an an existing cell. */ result = defined_color(f, (char *) XSTRING (name)->data, &color, 1); if (! result) Fsignal (Qerror, Fcons (build_string ("undefined 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; }