changeset 2742:7800e6a86421

* xdisp.c (display_text_line): Make face-handling code conditional on HAVE_X_WINDOWS macro. Perhaps this isn't the best approach, but it'll do for now. * xdisp.c (display_text_line): We can't use the FRAME_DEFAULT_FACE macro here; that's x-specific. Just don't pass the second argument. * xfaces.c (compute_glyph_face): Remove the BASIC_FACE argument; use F's default face.
author Jim Blandy <jimb@redhat.com>
date Tue, 11 May 1993 02:47:46 +0000
parents 1d72336294c6
children ddc49d5eee56
files src/xdisp.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue May 11 01:39:42 1993 +0000
+++ b/src/xdisp.c	Tue May 11 02:47:46 1993 +0000
@@ -1701,6 +1701,7 @@
 
 	  pause = end;
 
+#ifdef HAVE_X_WINDOWS
 	  /* Did we hit a face change?  Figure out what face we should
 	     use now.  We also hit this the first time through the
 	     loop, to see what face we should start with.  */
@@ -1710,6 +1711,7 @@
 	      if (pos < next_face_change && next_face_change < pause)
 		pause = next_face_change;
 	    }
+#endif
 
 	  /* Wouldn't you hate to read the next line to someone over
              the phone?  */
@@ -1816,6 +1818,7 @@
 	  p1++;
 	}
 
+#ifdef HAVE_X_WINDOWS
       /* Now we've laid down some characters between p1prev and p1.
 	 Let's apply current_face to those who have a face of zero
 	 (the default), and apply Vglyph_table to the result.  */
@@ -1830,9 +1833,9 @@
 	    *gp = MAKE_GLYPH (GLYPH_CHAR (*gp),
 			      (GLYPH_FACE (*gp) == 0
 			       ? current_face
-			       : compute_glyph_face (f, FRAME_DEFAULT_FACE (f),
-						     GLYPH_FACE (*gp))));
+			       : compute_glyph_face (f, GLYPH_FACE (*gp))));
 	}
+#endif
 
       pos++;
     }