mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 19:10:37 -08:00
(load_color): misleading comment rewritten.
This commit is contained in:
parent
4a4a9db5ef
commit
34dda5f4fc
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue