From e6269cbb9ee2a0297e042cb066a996df87a41a1d Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 15 Oct 2001 10:12:08 +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 c6b6f477359..1fe78ad6407 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