diff src/w32term.c @ 99557:5cf4a15cedab

(x_draw_glyph_string): Stop drawing the background of the next glyph string once past the overhang width.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 15 Nov 2008 05:20:33 +0000
parents 386d8aa805a2
children 3ff54631d8b3
line wrap: on
line diff
--- a/src/w32term.c	Sat Nov 15 05:20:12 2008 +0000
+++ b/src/w32term.c	Sat Nov 15 05:20:33 2008 +0000
@@ -2241,7 +2241,8 @@
     {
       int width;
       struct glyph_string *next;
-      for (width = 0, next = s->next; next;
+      for (width = 0, next = s->next;
+	   next && width < s->right_overhang;
            width += next->width, next = next->next)
         if (next->first_glyph->type != IMAGE_GLYPH)
           {