diff options
| author | Chong Yidong | 2008-05-27 21:10:55 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-05-27 21:10:55 +0000 |
| commit | c1e4782a8afe46dbe3745fc50e71f58144023295 (patch) | |
| tree | 739a4e395fa1e3e979feae334355ac07f3624311 /src | |
| parent | 45feca91905ee96fe150099e4b3773c5e66339d9 (diff) | |
| download | emacs-c1e4782a8afe46dbe3745fc50e71f58144023295.tar.gz emacs-c1e4782a8afe46dbe3745fc50e71f58144023295.zip | |
(x_draw_glyph_string): If a clipmask is specified, use it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index 42049c6939e..a14a8ed20eb 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -2664,8 +2664,10 @@ x_draw_glyph_string (s) | |||
| 2664 | x_set_glyph_string_clipping (s); | 2664 | x_set_glyph_string_clipping (s); |
| 2665 | relief_drawn_p = 1; | 2665 | relief_drawn_p = 1; |
| 2666 | } | 2666 | } |
| 2667 | else if ((s->prev && s->prev->hl != s->hl && s->left_overhang) | 2667 | else if (!s->clip_head /* draw_glyphs didn't specify a clip mask. */ |
| 2668 | || (s->next && s->next->hl != s->hl && s->right_overhang)) | 2668 | && !s->clip_tail |
| 2669 | && ((s->prev && s->prev->hl != s->hl && s->left_overhang) | ||
| 2670 | || (s->next && s->next->hl != s->hl && s->right_overhang))) | ||
| 2669 | /* We must clip just this glyph. left_overhang part has already | 2671 | /* We must clip just this glyph. left_overhang part has already |
| 2670 | drawn when s->prev was drawn, and right_overhang part will be | 2672 | drawn when s->prev was drawn, and right_overhang part will be |
| 2671 | drawn later when s->next is drawn. */ | 2673 | drawn later when s->next is drawn. */ |