aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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