aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorJason Rumney2008-05-28 16:13:20 +0000
committerJason Rumney2008-05-28 16:13:20 +0000
commita6e0b7e57248adf3ce9615f8de08dac2ff46f6ee (patch)
tree2f3ba952966e3b37c1a45863fd104cd90291ec2f /src/w32term.c
parent5b813fe87e42769ab12040b47dbf247034dbccf5 (diff)
downloademacs-a6e0b7e57248adf3ce9615f8de08dac2ff46f6ee.tar.gz
emacs-a6e0b7e57248adf3ce9615f8de08dac2ff46f6ee.zip
(x_draw_glyph_string): Use clipmask if specified.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 0fbbf370fa2..a9bbbbe23fc 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -2830,8 +2830,10 @@ x_draw_glyph_string (s)
2830 x_set_glyph_string_clipping (s); 2830 x_set_glyph_string_clipping (s);
2831 relief_drawn_p = 1; 2831 relief_drawn_p = 1;
2832 } 2832 }
2833 else if ((s->prev && s->prev->hl != s->hl && s->left_overhang) 2833 else if (!s->clip_head /* draw_glyphs didn't specify a clip mask. */
2834 || (s->next && s->next->hl != s->hl && s->right_overhang)) 2834 && !s->clip_tail
2835 && ((s->prev && s->prev->hl != s->hl && s->left_overhang)
2836 || (s->next && s->next->hl != s->hl && s->right_overhang)))
2835 /* We must clip just this glyph. left_overhang part has already 2837 /* We must clip just this glyph. left_overhang part has already
2836 drawn when s->prev was drawn, and right_overhang part will be 2838 drawn when s->prev was drawn, and right_overhang part will be
2837 drawn later when s->next is drawn. */ 2839 drawn later when s->next is drawn. */