changeset 6278:ab5b9470fd85

(display_mode_line): Highlight partial-width mode lines for a non-termcal frame.
author Richard M. Stallman <rms@gnu.org>
date Thu, 10 Mar 1994 00:23:35 +0000
parents 444351051761
children 8ee9dcd3771e
files src/xdisp.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Thu Mar 10 00:20:34 1994 +0000
+++ b/src/xdisp.c	Thu Mar 10 00:23:35 1994 +0000
@@ -2461,6 +2461,14 @@
   if (XFASTINT (w->width) == FRAME_WIDTH (f)
       || XFASTINT (XWINDOW (w->parent)->width) == FRAME_WIDTH (f))
     FRAME_DESIRED_GLYPHS (f)->highlight[vpos] = mode_line_inverse_video;
+  else if (! FRAME_TERMCAP_P (f))
+    {
+      /* For a partial width window, explicitly set face of each glyph. */
+      int i;
+      GLYPH *ptr = FRAME_DESIRED_GLYPHS (f)->glyphs[vpos];
+      for (i = left; i < right; ++i)
+	ptr[i] = MAKE_GLYPH (GLYPH_CHAR (ptr[i]), 1);
+    }
 
 #ifdef HAVE_X_WINDOWS
   /* I'm trying this out because I saw Unimpress use it, but it's