+1999-12-22 Kenichi Handa <handa@etl.go.jp>
+
+ * xfaces.c (face_color_supported_p): Check by tty_defined_color
+ only when the frame is not window.
+
1999-12-22 Gerd Moellmann <gerd@gnu.org>
* buffer.c (Fset_buffer_multibyte): Arrange for a thorough
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, ¬_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, ¬_used, 0));
}