From: Chong Yidong Date: Sat, 15 Nov 2008 05:21:20 +0000 (+0000) Subject: (x_draw_glyph_string): Stop drawing the background of the next glyph X-Git-Tag: emacs-pretest-23.0.90~1829 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8afbb9372d3a17b42a55c4fc36e52f2c55f64767;p=emacs.git (x_draw_glyph_string): Stop drawing the background of the next glyph string once past the overhang width. --- diff --git a/src/xterm.c b/src/xterm.c index 2a0f783580e..7f0c0b5aba2 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -2653,7 +2653,8 @@ x_draw_glyph_string (s) 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) {