1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-10 00:42:17 -07:00

(x_set_glyph_string_clipping_exactly): Set

src->clip_head and src->clip_tail temporarily instead of src->hl.
This commit is contained in:
Kenichi Handa 2006-03-02 06:39:08 +00:00
parent 71db3621a2
commit b32d320efb

View file

@ -1185,11 +1185,13 @@ x_set_glyph_string_clipping_exactly (src, dst)
struct glyph_string *src, *dst;
{
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);
src->hl = save;
src->clip_head = clip_head, src->clip_tail = clip_tail;
XSetClipRectangles (dst->display, dst->gc, 0, 0, &r, 1, Unsorted);
}