summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2008-02-15 17:16:35 +0000
committerJason Rumney <jasonr@gnu.org>2008-02-15 17:16:35 +0000
commit073387e72549b8f1ed4eada3803bd6bd3dddf893 (patch)
treed8dcc6185a08338bafd5f1a8806a3683b74d0c3f
parentff31fb954a7d7ec9f7f9e709f599e10b0fc2f3df (diff)
downloademacs-073387e72549b8f1ed4eada3803bd6bd3dddf893.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.
-rw-r--r--src/ChangeLog7
-rw-r--r--src/w32term.c4
2 files changed, 10 insertions, 1 deletions
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 <jasonr@gnu.org>
+
+ * 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 <eliz@gnu.org>
* fileio.c (syms_of_fileio) <insert-default-directory>: 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);