aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2008-02-15 17:16:35 +0000
committerJason Rumney2008-02-15 17:16:35 +0000
commit073387e72549b8f1ed4eada3803bd6bd3dddf893 (patch)
treed8dcc6185a08338bafd5f1a8806a3683b74d0c3f /src
parentff31fb954a7d7ec9f7f9e709f599e10b0fc2f3df (diff)
downloademacs-073387e72549b8f1ed4eada3803bd6bd3dddf893.tar.gz
emacs-073387e72549b8f1ed4eada3803bd6bd3dddf893.zip
(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')
-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 @@
12008-02-15 Jason Rumney <jasonr@gnu.org>
2
3 * w32term.c (x_draw_glyph_string_background): Clear the background
4 manually when cleartype is in use.
5 (x_draw_glyph_string_foreground): Draw text transparently when
6 cleartype is in use.
7
12008-02-09 Eli Zaretskii <eliz@gnu.org> 82008-02-09 Eli Zaretskii <eliz@gnu.org>
2 9
3 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix. 10 * 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)
1519 || s->font_not_found_p 1519 || s->font_not_found_p
1520 || s->extends_to_end_of_line_p 1520 || s->extends_to_end_of_line_p
1521 || s->font->bdf 1521 || s->font->bdf
1522 || cleartype_active
1522 || force_p) 1523 || force_p)
1523 { 1524 {
1524 x_clear_glyph_string_rect (s, s->x, s->y + box_line_width, 1525 x_clear_glyph_string_rect (s, s->x, s->y + box_line_width,
@@ -1547,7 +1548,8 @@ x_draw_glyph_string_foreground (s)
1547 else 1548 else
1548 x = s->x; 1549 x = s->x;
1549 1550
1550 if (s->for_overlaps || (s->background_filled_p && s->hl != DRAW_CURSOR)) 1551 if (s->for_overlaps || (s->background_filled_p && s->hl != DRAW_CURSOR)
1552 || cleartype_active)
1551 SetBkMode (s->hdc, TRANSPARENT); 1553 SetBkMode (s->hdc, TRANSPARENT);
1552 else 1554 else
1553 SetBkMode (s->hdc, OPAQUE); 1555 SetBkMode (s->hdc, OPAQUE);