diff options
| author | Richard M. Stallman | 1994-03-10 00:23:35 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-03-10 00:23:35 +0000 |
| commit | d7eb09a0cd3b5579ad67e24f52ad50881d9961e7 (patch) | |
| tree | 26fcbb13f7e9201fd76edaaac91ba13fae720f96 /src | |
| parent | 4606cc9da83db6fdf0e00784627ec051d46005d8 (diff) | |
| download | emacs-d7eb09a0cd3b5579ad67e24f52ad50881d9961e7.tar.gz emacs-d7eb09a0cd3b5579ad67e24f52ad50881d9961e7.zip | |
(display_mode_line): Highlight partial-width mode lines
for a non-termcal frame.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 7a3a84e221e..d2e5966049a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -2461,6 +2461,14 @@ display_mode_line (w) | |||
| 2461 | if (XFASTINT (w->width) == FRAME_WIDTH (f) | 2461 | if (XFASTINT (w->width) == FRAME_WIDTH (f) |
| 2462 | || XFASTINT (XWINDOW (w->parent)->width) == FRAME_WIDTH (f)) | 2462 | || XFASTINT (XWINDOW (w->parent)->width) == FRAME_WIDTH (f)) |
| 2463 | FRAME_DESIRED_GLYPHS (f)->highlight[vpos] = mode_line_inverse_video; | 2463 | FRAME_DESIRED_GLYPHS (f)->highlight[vpos] = mode_line_inverse_video; |
| 2464 | else if (! FRAME_TERMCAP_P (f)) | ||
| 2465 | { | ||
| 2466 | /* For a partial width window, explicitly set face of each glyph. */ | ||
| 2467 | int i; | ||
| 2468 | GLYPH *ptr = FRAME_DESIRED_GLYPHS (f)->glyphs[vpos]; | ||
| 2469 | for (i = left; i < right; ++i) | ||
| 2470 | ptr[i] = MAKE_GLYPH (GLYPH_CHAR (ptr[i]), 1); | ||
| 2471 | } | ||
| 2464 | 2472 | ||
| 2465 | #ifdef HAVE_X_WINDOWS | 2473 | #ifdef HAVE_X_WINDOWS |
| 2466 | /* I'm trying this out because I saw Unimpress use it, but it's | 2474 | /* I'm trying this out because I saw Unimpress use it, but it's |