From 0a4795a87511c22141116f0b32bc95165aecb859 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 15 Oct 2001 10:14:37 +0000 Subject: [PATCH] (x_draw_glyph_string): Restore clipping after drawing box. --- src/xterm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index 7f67815feac..01499c31b06 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -4446,7 +4446,6 @@ x_draw_glyph_string (s) /* Set up S->gc, set clipping and draw S. */ x_set_glyph_string_gc (s); - x_set_glyph_string_clipping (s); /* Draw relief (if any) in advance for char/composition so that the glyph string can be drawn over it. */ @@ -4456,10 +4455,14 @@ x_draw_glyph_string (s) || s->first_glyph->type == COMPOSITE_GLYPH)) { + x_set_glyph_string_clipping (s); x_draw_glyph_string_background (s, 1); x_draw_glyph_string_box (s); + x_set_glyph_string_clipping (s); relief_drawn_p = 1; } + else + x_set_glyph_string_clipping (s); switch (s->first_glyph->type) { -- 2.39.2