Mercurial > emacs
changeset 90335:aa91709ce7ed
(x_set_glyph_string_clipping_exactly): Set
src->clip_head and src->clip_tail temporarily instead of src->hl.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 02 Mar 2006 06:39:08 +0000 |
parents | 51cc1fad218d |
children | f0338dbf2276 |
files | src/xterm.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Thu Mar 02 01:49:01 2006 +0000 +++ b/src/xterm.c Thu Mar 02 06:39:08 2006 +0000 @@ -1185,11 +1185,13 @@ struct glyph_string *src, *dst; { XRectangle r; - enum draw_glyphs_face save = src->hl; - - src->hl = DRAW_CURSOR; /* This foces clipping just this glyph. */ + struct glyph_string *clip_head = src->clip_head; + struct glyph_string *clip_tail = src->clip_tail; + + /* This foces clipping just this glyph string. */ + src->clip_head = src->clip_tail = src; get_glyph_string_clip_rect (src, &r); - src->hl = save; + src->clip_head = clip_head, src->clip_tail = clip_tail; XSetClipRectangles (dst->display, dst->gc, 0, 0, &r, 1, Unsorted); }