]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_draw_glyph_string): Restore clipping after
authorGerd Moellmann <gerd@gnu.org>
Mon, 15 Oct 2001 10:12:08 +0000 (10:12 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 15 Oct 2001 10:12:08 +0000 (10:12 +0000)
drawing box.

src/xterm.c

index c6b6f4773597cee1ac0397d0eddc78955ee0b6ea..1fe78ad640774e3b8154223eefd4b99c72ee3b0a 100644 (file)
@@ -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)
     {