From 073387e72549b8f1ed4eada3803bd6bd3dddf893 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Fri, 15 Feb 2008 17:16:35 +0000 Subject: [PATCH] (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. --- src/ChangeLog | 7 +++++++ src/w32term.c | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3cf55438b83..1c0c5b03b52 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2008-02-15 Jason Rumney + + * w32term.c (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. + 2008-02-09 Eli Zaretskii * fileio.c (syms_of_fileio) : Doc fix. diff --git a/src/w32term.c b/src/w32term.c index 2b007b14b44..bfda8e9e9d3 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -1519,6 +1519,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, @@ -1547,7 +1548,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); -- 2.39.5