]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 69612302774241ba49c2b7c65d098747707b3db2..97e3b743469cbe3258d2e73202f2322e54d1f364 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 294059aa77bbb598df55eaaba7df7394f016903a..5e33c3af7b949e2cadef00339f219cdef30a5ca5 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 6fb9ee28f4204797015e465771abafbb36e7a209..9cea615ca1e75d191c0fc048af2f90c79c837f7c 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;