Commit ccda4e3c authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(x_supports_face_attributes_p): Make this function

conditional on HAVE_WINDOW_SYSTEM.
(Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]: Don't
call x_supports_face_attributes_p if it was not compiled in.
parent 1151d617
......@@ -5740,6 +5740,7 @@ DEFUN ("face-attributes-as-vector", Fface_attributes_as_vector,
#define TTY_SAME_COLOR_THRESHOLD 10000
#ifdef HAVE_WINDOW_SYSTEM
/* Return non-zero if all the face attributes in ATTRS are supported
on the window-system frame F.
......@@ -5828,6 +5829,7 @@ x_supports_face_attributes_p (f, attrs)
return 1;
}
#endif /* HAVE_WINDOW_SYSTEM */
/* Return non-zero if all the face attributes in ATTRS are supported
on the tty frame F.
......@@ -6042,8 +6044,10 @@ face for italic. */)
/* Dispatch to the appropriate handler. */
if (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f))
supports = tty_supports_face_attributes_p (f, attrs);
#ifdef HAVE_WINDOW_SYSTEM
else
supports = x_supports_face_attributes_p (f, attrs);
#endif /* HAVE_WINDOW_SYSTEM */
return supports ? Qt : Qnil;
}
......
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