aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2006-03-02 06:39:08 +0000
committerKenichi Handa2006-03-02 06:39:08 +0000
commitb32d320efb4f9821ee3d9f58df005ab46441945a (patch)
tree6e1993c9a7aae8294cc30b8ef6ac10345ec95483 /src
parent71db3621a27f256f170b4d6dcbbc28fcf3de545c (diff)
downloademacs-b32d320efb4f9821ee3d9f58df005ab46441945a.tar.gz
emacs-b32d320efb4f9821ee3d9f58df005ab46441945a.zip
(x_set_glyph_string_clipping_exactly): Set
src->clip_head and src->clip_tail temporarily instead of src->hl.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 698ec1b935c..ea12b4eba9f 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1185,11 +1185,13 @@ x_set_glyph_string_clipping_exactly (src, dst)
1185 struct glyph_string *src, *dst; 1185 struct glyph_string *src, *dst;
1186{ 1186{
1187 XRectangle r; 1187 XRectangle r;
1188 enum draw_glyphs_face save = src->hl; 1188 struct glyph_string *clip_head = src->clip_head;
1189 struct glyph_string *clip_tail = src->clip_tail;
1189 1190
1190 src->hl = DRAW_CURSOR; /* This foces clipping just this glyph. */ 1191 /* This foces clipping just this glyph string. */
1192 src->clip_head = src->clip_tail = src;
1191 get_glyph_string_clip_rect (src, &r); 1193 get_glyph_string_clip_rect (src, &r);
1192 src->hl = save; 1194 src->clip_head = clip_head, src->clip_tail = clip_tail;
1193 XSetClipRectangles (dst->display, dst->gc, 0, 0, &r, 1, Unsorted); 1195 XSetClipRectangles (dst->display, dst->gc, 0, 0, &r, 1, Unsorted);
1194} 1196}
1195 1197