aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-06-05 17:35:01 +0000
committerKarl Heuer1995-06-05 17:35:01 +0000
commit34dda5f4fcb1e2e6dff3929cb330752be138b53c (patch)
treee627dddbaf720b3248d395a431f7981d3808f03b /src
parent4a4a9db5efbcda09cfeba8fb5cb842b83931e315 (diff)
downloademacs-34dda5f4fcb1e2e6dff3929cb330752be138b53c.tar.gz
emacs-34dda5f4fcb1e2e6dff3929cb330752be138b53c.zip
(load_color): misleading comment rewritten.
Diffstat (limited to 'src')
-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)
347 return FACE_DEFAULT; 347 return FACE_DEFAULT;
348 348
349 CHECK_STRING (name, 0); 349 CHECK_STRING (name, 0);
350 /* if the colormap is full, defined_color will return a best match
351 to the values in an an existing cell. */
350 result = defined_color(f, (char *) XSTRING (name)->data, &color, 1); 352 result = defined_color(f, (char *) XSTRING (name)->data, &color, 1);
351 if (! result) 353 if (! result)
352 Fsignal (Qerror, Fcons (build_string ("undefined color"), 354 Fsignal (Qerror, Fcons (build_string ("undefined color"),
353 Fcons (name, Qnil))); 355 Fcons (name, Qnil)));
354 /* Ignore the return value of XallocColor, so that
355 we use a color close to the one requested
356 if we can't get the exact request. */
357 return (unsigned long) color.pixel; 356 return (unsigned long) color.pixel;
358} 357}
359 358