(x_draw_stretch_glyph_string): It is ok to draw a
authorKim F. Storm <storm@cua.dk>
Mon, 21 Aug 2006 08:53:32 +0000 (08:53 +0000)
committerKim F. Storm <storm@cua.dk>
Mon, 21 Aug 2006 08:53:32 +0000 (08:53 +0000)
stretch glyph in left marginal areas on header and mode lines.

src/macterm.c
src/w32term.c
src/xterm.c

index 6961230..97e3b74 100644 (file)
@@ -3583,7 +3583,9 @@ x_draw_stretch_glyph_string (s)
       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;
index 294059a..5e33c3a 100644 (file)
@@ -2418,7 +2418,9 @@ x_draw_stretch_glyph_string (s)
       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;
index 6fb9ee2..9cea615 100644 (file)
@@ -2589,7 +2589,9 @@ x_draw_stretch_glyph_string (s)
       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;