aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2006-08-21 08:53:32 +0000
committerKim F. Storm2006-08-21 08:53:32 +0000
commit6c6939293677c179b65e23aee9ec40537a418dbd (patch)
treef90188be367954571a0661bf88802ea8b76091e9 /src
parentc58790e68a9e81d4606a6f608694db76510eec07 (diff)
downloademacs-6c6939293677c179b65e23aee9ec40537a418dbd.tar.gz
emacs-6c6939293677c179b65e23aee9ec40537a418dbd.zip
(x_draw_stretch_glyph_string): It is ok to draw a
stretch glyph in left marginal areas on header and mode lines.
Diffstat (limited to 'src')
-rw-r--r--src/macterm.c4
-rw-r--r--src/w32term.c4
-rw-r--r--src/xterm.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/src/macterm.c b/src/macterm.c
index 69612302774..97e3b743469 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -3583,7 +3583,9 @@ x_draw_stretch_glyph_string (s)
3583 int background_width = s->background_width; 3583 int background_width = s->background_width;
3584 int x = s->x, left_x = window_box_left_offset (s->w, TEXT_AREA); 3584 int x = s->x, left_x = window_box_left_offset (s->w, TEXT_AREA);
3585 3585
3586 if (x < left_x) 3586 /* Don't draw into left margin, fringe or scrollbar area
3587 except for header line and mode line. */
3588 if (x < left_x && !s->row->mode_line_p)
3587 { 3589 {
3588 background_width -= left_x - x; 3590 background_width -= left_x - x;
3589 x = left_x; 3591 x = left_x;
diff --git a/src/w32term.c b/src/w32term.c
index 294059aa77b..5e33c3af7b9 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -2418,7 +2418,9 @@ x_draw_stretch_glyph_string (s)
2418 int background_width = s->background_width; 2418 int background_width = s->background_width;
2419 int x = s->x, left_x = window_box_left_offset (s->w, TEXT_AREA); 2419 int x = s->x, left_x = window_box_left_offset (s->w, TEXT_AREA);
2420 2420
2421 if (x < left_x) 2421 /* Don't draw into left margin, fringe or scrollbar area
2422 except for header line and mode line. */
2423 if (x < left_x && !s->row->mode_line_p)
2422 { 2424 {
2423 background_width -= left_x - x; 2425 background_width -= left_x - x;
2424 x = left_x; 2426 x = left_x;
diff --git a/src/xterm.c b/src/xterm.c
index 6fb9ee28f42..9cea615ca1e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2589,7 +2589,9 @@ x_draw_stretch_glyph_string (s)
2589 int background_width = s->background_width; 2589 int background_width = s->background_width;
2590 int x = s->x, left_x = window_box_left_offset (s->w, TEXT_AREA); 2590 int x = s->x, left_x = window_box_left_offset (s->w, TEXT_AREA);
2591 2591
2592 if (x < left_x) 2592 /* Don't draw into left margin, fringe or scrollbar area
2593 except for header line and mode line. */
2594 if (x < left_x && !s->row->mode_line_p)
2593 { 2595 {
2594 background_width -= left_x - x; 2596 background_width -= left_x - x;
2595 x = left_x; 2597 x = left_x;