From e3f81cd557b5b24baf80141341579454a1e63e3b Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 15 Nov 2008 05:20:33 +0000 Subject: [PATCH] (x_draw_glyph_string): Stop drawing the background of the next glyph string once past the overhang width. --- src/w32term.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.39.2