aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2008-11-15 05:21:20 +0000
committerChong Yidong2008-11-15 05:21:20 +0000
commit8afbb9372d3a17b42a55c4fc36e52f2c55f64767 (patch)
tree63425ec4ab3417a4c1f6f92d53bed816ff837096 /src
parent06e23d40a6b6c0f8ebeb70bf9771d994779d69b1 (diff)
downloademacs-8afbb9372d3a17b42a55c4fc36e52f2c55f64767.tar.gz
emacs-8afbb9372d3a17b42a55c4fc36e52f2c55f64767.zip
(x_draw_glyph_string): Stop drawing the background of the next glyph
string once past the overhang width.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 2a0f783580e..7f0c0b5aba2 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2653,7 +2653,8 @@ x_draw_glyph_string (s)
2653 int width; 2653 int width;
2654 struct glyph_string *next; 2654 struct glyph_string *next;
2655 2655
2656 for (width = 0, next = s->next; next; 2656 for (width = 0, next = s->next;
2657 next && width < s->right_overhang;
2657 width += next->width, next = next->next) 2658 width += next->width, next = next->next)
2658 if (next->first_glyph->type != IMAGE_GLYPH) 2659 if (next->first_glyph->type != IMAGE_GLYPH)
2659 { 2660 {