changeset 72470:3b82c004bf25

(x_draw_stretch_glyph_string): It is ok to draw a stretch glyph in left marginal areas on header and mode lines.
author Kim F. Storm <storm@cua.dk>
date Mon, 21 Aug 2006 08:53:32 +0000
parents c62aa4c24b5d
children 67b9aa1b5c82
files src/macterm.c src/w32term.c src/xterm.c
diffstat 3 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/macterm.c	Mon Aug 21 08:52:54 2006 +0000
+++ b/src/macterm.c	Mon Aug 21 08:53:32 2006 +0000
@@ -3583,7 +3583,9 @@
       int background_width = s->background_width;
       int x = s->x, left_x = window_box_left_offset (s->w, TEXT_AREA);
 
-      if (x < left_x)
+      /* Don't draw into left margin, fringe or scrollbar area
+         except for header line and mode line.  */
+      if (x < left_x && !s->row->mode_line_p)
 	{
 	  background_width -= left_x - x;
 	  x = left_x;
--- a/src/w32term.c	Mon Aug 21 08:52:54 2006 +0000
+++ b/src/w32term.c	Mon Aug 21 08:53:32 2006 +0000
@@ -2418,7 +2418,9 @@
       int background_width = s->background_width;
       int x = s->x, left_x = window_box_left_offset (s->w, TEXT_AREA);
 
-      if (x < left_x)
+      /* Don't draw into left margin, fringe or scrollbar area
+         except for header line and mode line.  */
+      if (x < left_x && !s->row->mode_line_p)
 	{
 	  background_width -= left_x - x;
 	  x = left_x;
--- a/src/xterm.c	Mon Aug 21 08:52:54 2006 +0000
+++ b/src/xterm.c	Mon Aug 21 08:53:32 2006 +0000
@@ -2589,7 +2589,9 @@
       int background_width = s->background_width;
       int x = s->x, left_x = window_box_left_offset (s->w, TEXT_AREA);
 
-      if (x < left_x)
+      /* Don't draw into left margin, fringe or scrollbar area
+         except for header line and mode line.  */
+      if (x < left_x && !s->row->mode_line_p)
 	{
 	  background_width -= left_x - x;
 	  x = left_x;