]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_draw_glyph_string): If a clipmask is specified, use it.
authorChong Yidong <cyd@stupidchicken.com>
Tue, 27 May 2008 21:10:55 +0000 (21:10 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 27 May 2008 21:10:55 +0000 (21:10 +0000)
src/xterm.c

index 42049c6939e541f0d9bf2a1bf1b6aead84668473..a14a8ed20ebbfd8ba1c989ddcf8dfbe2f2bb9a66 100644 (file)
@@ -2664,8 +2664,10 @@ x_draw_glyph_string (s)
       x_set_glyph_string_clipping (s);
       relief_drawn_p = 1;
     }
-  else if ((s->prev && s->prev->hl != s->hl && s->left_overhang)
-          || (s->next && s->next->hl != s->hl && s->right_overhang))
+  else if (!s->clip_head /* draw_glyphs didn't specify a clip mask. */
+          && !s->clip_tail
+          && ((s->prev && s->prev->hl != s->hl && s->left_overhang)
+              || (s->next && s->next->hl != s->hl && s->right_overhang)))
     /* We must clip just this glyph.  left_overhang part has already
        drawn when s->prev was drawn, and right_overhang part will be
        drawn later when s->next is drawn. */