From 06e23d40a6b6c0f8ebeb70bf9771d994779d69b1 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 15 Nov 2008 05:20:49 +0000 Subject: [PATCH] (ns_draw_glyph_string): Stop drawing the background of the next glyph string once past the overhang width. --- src/nsterm.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nsterm.m b/src/nsterm.m index 7b9cebac875..ccfee9b57b0 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -2829,7 +2829,8 @@ ns_draw_glyph_string (struct 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