From: Karl Heuer Date: Mon, 5 Jun 1995 17:35:01 +0000 (+0000) Subject: (load_color): misleading comment rewritten. X-Git-Tag: emacs-19.34~3781 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=34dda5f4fcb1e2e6dff3929cb330752be138b53c;p=emacs.git (load_color): misleading comment rewritten. --- diff --git a/src/xfaces.c b/src/xfaces.c index 24719321ae6..efacf370c27 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -347,13 +347,12 @@ load_color (f, name) 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; }