aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2008-11-15 05:20:49 +0000
committerChong Yidong2008-11-15 05:20:49 +0000
commit06e23d40a6b6c0f8ebeb70bf9771d994779d69b1 (patch)
tree0ef3f824356755c1cb2ffafd790533f1acd2edcd /src
parente3f81cd557b5b24baf80141341579454a1e63e3b (diff)
downloademacs-06e23d40a6b6c0f8ebeb70bf9771d994779d69b1.tar.gz
emacs-06e23d40a6b6c0f8ebeb70bf9771d994779d69b1.zip
(ns_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/nsterm.m3
1 files changed, 2 insertions, 1 deletions
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)
2829 int width; 2829 int width;
2830 struct glyph_string *next; 2830 struct glyph_string *next;
2831 2831
2832 for (width = 0, next = s->next; next; 2832 for (width = 0, next = s->next;
2833 next && width < s->right_overhang;
2833 width += next->width, next = next->next) 2834 width += next->width, next = next->next)
2834 if (next->first_glyph->type != IMAGE_GLYPH) 2835 if (next->first_glyph->type != IMAGE_GLYPH)
2835 { 2836 {