]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_draw_glyph_string): Use clipmask if specified.
authorJason Rumney <jasonr@gnu.org>
Wed, 28 May 2008 16:13:20 +0000 (16:13 +0000)
committerJason Rumney <jasonr@gnu.org>
Wed, 28 May 2008 16:13:20 +0000 (16:13 +0000)
src/ChangeLog
src/w32term.c

index b4a3e74c453611f81832cbb335080890306f543c..78afe35a8bbf22ed790973b214265aba3dc67ec7 100644 (file)
@@ -1,3 +1,7 @@
+2008-05-28  Jason Rumney  <jasonr@gnu.org>
+
+        * w32term.c (x_draw_glyph_string): Use clipmask if specified.
+
 2008-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
index 0fbbf370fa2f92d727f1b9be6620b96f8da64805..a9bbbbe23fceef1027f45d0ce7f985a9a2603a3d 100644 (file)
@@ -2830,8 +2830,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. */