aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfaces.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 567a56d229c..fdc08391fb7 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -5827,7 +5827,7 @@ face for italic. */)
5827 } 5827 }
5828 5828
5829 /* Dispatch to the appropriate handler. */ 5829 /* Dispatch to the appropriate handler. */
5830 if (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)) 5830 if (is_tty_frame (f))
5831 supports = tty_supports_face_attributes_p (f, attrs, def_face); 5831 supports = tty_supports_face_attributes_p (f, attrs, def_face);
5832#ifdef HAVE_WINDOW_SYSTEM 5832#ifdef HAVE_WINDOW_SYSTEM
5833 else 5833 else
@@ -6121,7 +6121,7 @@ realize_default_face (struct frame *f)
6121 ASET (lface, LFACE_FOREGROUND_INDEX, XCDR (color)); 6121 ASET (lface, LFACE_FOREGROUND_INDEX, XCDR (color));
6122 else if (FRAME_WINDOW_P (f)) 6122 else if (FRAME_WINDOW_P (f))
6123 return false; 6123 return false;
6124 else if (FRAME_INITIAL_P (f) || FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)) 6124 else if (FRAME_INITIAL_P (f) || is_tty_frame (f))
6125 ASET (lface, LFACE_FOREGROUND_INDEX, build_string (unspecified_fg)); 6125 ASET (lface, LFACE_FOREGROUND_INDEX, build_string (unspecified_fg));
6126 else 6126 else
6127 emacs_abort (); 6127 emacs_abort ();
@@ -6136,7 +6136,7 @@ realize_default_face (struct frame *f)
6136 ASET (lface, LFACE_BACKGROUND_INDEX, XCDR (color)); 6136 ASET (lface, LFACE_BACKGROUND_INDEX, XCDR (color));
6137 else if (FRAME_WINDOW_P (f)) 6137 else if (FRAME_WINDOW_P (f))
6138 return false; 6138 return false;
6139 else if (FRAME_INITIAL_P (f) || FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)) 6139 else if (FRAME_INITIAL_P (f) || is_tty_frame (f))
6140 ASET (lface, LFACE_BACKGROUND_INDEX, build_string (unspecified_bg)); 6140 ASET (lface, LFACE_BACKGROUND_INDEX, build_string (unspecified_bg));
6141 else 6141 else
6142 emacs_abort (); 6142 emacs_abort ();
@@ -6247,7 +6247,7 @@ realize_face (struct face_cache *cache, Lisp_Object attrs[LFACE_VECTOR_SIZE],
6247 6247
6248 if (FRAME_WINDOW_P (cache->f)) 6248 if (FRAME_WINDOW_P (cache->f))
6249 face = realize_gui_face (cache, attrs); 6249 face = realize_gui_face (cache, attrs);
6250 else if (FRAME_TERMCAP_P (cache->f) || FRAME_MSDOS_P (cache->f)) 6250 else if (is_tty_frame (cache->f))
6251 face = realize_tty_face (cache, attrs); 6251 face = realize_tty_face (cache, attrs);
6252 else if (FRAME_INITIAL_P (cache->f)) 6252 else if (FRAME_INITIAL_P (cache->f))
6253 { 6253 {
@@ -6760,7 +6760,7 @@ realize_tty_face (struct face_cache *cache,
6760 struct frame *f = cache->f; 6760 struct frame *f = cache->f;
6761 6761
6762 /* Frame must be a termcap frame. */ 6762 /* Frame must be a termcap frame. */
6763 eassert (FRAME_TERMCAP_P (cache->f) || FRAME_MSDOS_P (cache->f)); 6763 eassert (is_tty_frame (cache->f));
6764 6764
6765 /* Allocate a new realized face. */ 6765 /* Allocate a new realized face. */
6766 face = make_realized_face (attrs); 6766 face = make_realized_face (attrs);