# HG changeset patch # User Jason Rumney # Date 1203095708 0 # Node ID a9b55a84008ec938d3c203440376e4fefc3e347d # Parent 288a07952e035f26ac33d7c25d2533136325f114 (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. diff -r 288a07952e03 -r a9b55a84008e src/w32term.c --- a/src/w32term.c Fri Feb 15 16:07:51 2008 +0000 +++ b/src/w32term.c Fri Feb 15 17:15:08 2008 +0000 @@ -1519,6 +1519,7 @@ || 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, @@ -1547,7 +1548,8 @@ 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);