Mercurial > emacs
changeset 99559:651ff4b959b3
(x_draw_glyph_string): Stop drawing the background of the next glyph
string once past the overhang width.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 15 Nov 2008 05:21:20 +0000 |
parents | de06f7b71b82 |
children | 2309359f1f1f |
files | src/xterm.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Sat Nov 15 05:20:49 2008 +0000 +++ b/src/xterm.c Sat Nov 15 05:21:20 2008 +0000 @@ -2653,7 +2653,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) {