summaryrefslogtreecommitdiff
path: root/src/xfaces.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-06-05 17:35:01 +0000
committerKarl Heuer <kwzh@gnu.org>1995-06-05 17:35:01 +0000
commita60f37cb7b69183d1927ca717e18134d3b6a73ea (patch)
treec67b1907957918563c176f9ea6d32f452f52a7d5 /src/xfaces.c
parent4ecaa2000fc1389fe0b7d42fa287a6bf2477b116 (diff)
downloademacs-a60f37cb7b69183d1927ca717e18134d3b6a73ea.tar.gz
(load_color): misleading comment rewritten.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c5
1 files changed, 2 insertions, 3 deletions
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;
}