# HG changeset patch # User Chong Yidong # Date 1226726449 0 # Node ID de06f7b71b82cdf053fc0bbac94aad45dd062c1f # Parent 5cf4a15cedab1392d44f3ca09e05fde78f4534cc (ns_draw_glyph_string): Stop drawing the background of the next glyph string once past the overhang width. diff -r 5cf4a15cedab -r de06f7b71b82 src/nsterm.m --- a/src/nsterm.m Sat Nov 15 05:20:33 2008 +0000 +++ b/src/nsterm.m Sat Nov 15 05:20:49 2008 +0000 @@ -2829,7 +2829,8 @@ 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) {