Commit 8affcced authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(face_color_supported_p): Check by tty_defined_color

only when the frame is not window.
parent deca1348
No preview for this file type
......@@ -1232,15 +1232,15 @@ face_color_supported_p (f, color_name, background_p)
XColor not_used;
XSETFRAME (frame, f);
return ((FRAME_WINDOW_P (f)
&& (!NILP (Fxw_display_color_p (frame))
|| xstricmp (color_name, "black") == 0
|| xstricmp (color_name, "white") == 0
|| (background_p
&& face_color_gray_p (f, color_name))
|| (!NILP (Fx_display_grayscale_p (frame))
&& face_color_gray_p (f, color_name))))
|| tty_defined_color (f, color_name, &not_used, 0));
return (FRAME_WINDOW_P (f)
? (!NILP (Fxw_display_color_p (frame))
|| xstricmp (color_name, "black") == 0
|| xstricmp (color_name, "white") == 0
|| (background_p
&& face_color_gray_p (f, color_name))
|| (!NILP (Fx_display_grayscale_p (frame))
&& face_color_gray_p (f, color_name)))
: tty_defined_color (f, color_name, &not_used, 0));
}
......
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