From: Chong Yidong Date: Sat, 15 Nov 2008 05:20:49 +0000 (+0000) Subject: (ns_draw_glyph_string): Stop drawing the background of the next glyph X-Git-Tag: emacs-pretest-23.0.90~1830 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=06e23d40a6b6c0f8ebeb70bf9771d994779d69b1;p=emacs.git (ns_draw_glyph_string): Stop drawing the background of the next glyph string once past the overhang width. --- 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) {