]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_draw_glyph_string_background): Clear the background
authorJason Rumney <jasonr@gnu.org>
Fri, 15 Feb 2008 17:16:35 +0000 (17:16 +0000)
committerJason Rumney <jasonr@gnu.org>
Fri, 15 Feb 2008 17:16:35 +0000 (17:16 +0000)
manually when cleartype is in use.
(x_draw_glyph_string_foreground): Draw text transparently when
cleartype is in use.

src/ChangeLog
src/w32term.c

index 3cf55438b83f696558ba6b203e491115f5b0a562..1c0c5b03b521cbd9973a5822fc167381d1964382 100644 (file)
@@ -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.
index 2b007b14b44a9163a30ff6ea5de544fabd9989db..bfda8e9e9d3b70b8859c756384c4a4e10dba0fed 100644 (file)
@@ -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);