Commit b32d320e authored by Kenichi Handa's avatar Kenichi Handa

(x_set_glyph_string_clipping_exactly): Set

src->clip_head and src->clip_tail temporarily instead of src->hl.
parent 71db3621
...@@ -1185,11 +1185,13 @@ x_set_glyph_string_clipping_exactly (src, dst) ...@@ -1185,11 +1185,13 @@ x_set_glyph_string_clipping_exactly (src, dst)
struct glyph_string *src, *dst; struct glyph_string *src, *dst;
{ {
XRectangle r; XRectangle r;
enum draw_glyphs_face save = src->hl; struct glyph_string *clip_head = src->clip_head;
struct glyph_string *clip_tail = src->clip_tail;
src->hl = DRAW_CURSOR; /* This foces clipping just this glyph. */ /* This foces clipping just this glyph string. */
src->clip_head = src->clip_tail = src;
get_glyph_string_clip_rect (src, &r); 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); XSetClipRectangles (dst->display, dst->gc, 0, 0, &r, 1, Unsorted);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment