From: Chong Yidong Date: Sat, 15 Nov 2008 05:20:33 +0000 (+0000) Subject: (x_draw_glyph_string): Stop drawing the background of the next glyph X-Git-Tag: emacs-pretest-23.0.90~1831 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e3f81cd557b5b24baf80141341579454a1e63e3b;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/w32term.c b/src/w32term.c index 3e73ceba428..69ebaf554f0 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -2241,7 +2241,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) {