# HG changeset patch # User Jason Rumney # Date 1203867899 0 # Node ID 285c3036c037bcadbd68da0ecb798704ad3fe7ef # Parent 37d6263f580b9d5c60b174379d5509a88b109570 (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 37d6263f580b -r 285c3036c037 src/w32term.c --- a/src/w32term.c Sun Feb 24 15:23:45 2008 +0000 +++ b/src/w32term.c Sun Feb 24 15:44:59 2008 +0000 @@ -1846,6 +1846,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, @@ -1874,7 +1875,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);