summaryrefslogtreecommitdiff
path: root/src/w32term.c
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2008-02-24 15:44:59 +0000
committerJason Rumney <jasonr@gnu.org>2008-02-24 15:44:59 +0000
commitc56613fddbe2884a482a0118218905979e382926 (patch)
tree12bdb8c22d188dc36db1df023fe6f24a233147a4 /src/w32term.c
parentef809fade86528e0c72ebd09041ff380eb56e8ae (diff)
downloademacs-c56613fddbe2884a482a0118218905979e382926.tar.gz
(x_draw_glyph_string_background): Clear the background
manually when cleartype is in use. (x_draw_glyph_string_foreground): Draw text transparently when cleartype is in use.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 57455303ed5..25ecccfd6ba 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -1846,6 +1846,7 @@ x_draw_glyph_string_background (s, force_p)
|| s->font_not_found_p
|| s->extends_to_end_of_line_p
|| s->font->bdf
+ || cleartype_active
|| force_p)
{
x_clear_glyph_string_rect (s, s->x, s->y + box_line_width,
@@ -1874,7 +1875,8 @@ x_draw_glyph_string_foreground (s)
else
x = s->x;
- if (s->for_overlaps || (s->background_filled_p && s->hl != DRAW_CURSOR))
+ if (s->for_overlaps || (s->background_filled_p && s->hl != DRAW_CURSOR)
+ || cleartype_active)
SetBkMode (s->hdc, TRANSPARENT);
else
SetBkMode (s->hdc, OPAQUE);