diff options
| author | Chong Yidong | 2008-11-15 05:20:49 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-11-15 05:20:49 +0000 |
| commit | 06e23d40a6b6c0f8ebeb70bf9771d994779d69b1 (patch) | |
| tree | 0ef3f824356755c1cb2ffafd790533f1acd2edcd /src | |
| parent | e3f81cd557b5b24baf80141341579454a1e63e3b (diff) | |
| download | emacs-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.m | 3 |
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 | { |