Commit 58387771 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(x_decode_color): Ignore failure from defined_color.

parent 86e00a8a
...@@ -1016,10 +1016,11 @@ x_decode_color (f, arg, def) ...@@ -1016,10 +1016,11 @@ x_decode_color (f, arg, def)
if (FRAME_X_DISPLAY_INFO (f)->n_planes == 1) if (FRAME_X_DISPLAY_INFO (f)->n_planes == 1)
return def; return def;
if (defined_color (f, XSTRING (arg)->data, &cdef, 1)) /* Ignore the return value of defined_color so that
we use a color close to the one requested
if we can't get the exact request. */
defined_color (f, XSTRING (arg)->data, &cdef, 1);
return cdef.pixel; return cdef.pixel;
else
Fsignal (Qundefined_color, Fcons (arg, Qnil));
} }
/* Functions called only from `x_set_frame_param' /* Functions called only from `x_set_frame_param'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment