diff options
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/w32term.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index afddcca381b..dda7a11fdaa 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2008-02-24 Jason Rumney <jasonr@gnu.org> | 1 | 2008-02-24 Jason Rumney <jasonr@gnu.org> |
| 2 | 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 | |||
| 3 | * w32font.c (w32font_text_extents): Avoid getting HDC and selecting | 8 | * w32font.c (w32font_text_extents): Avoid getting HDC and selecting |
| 4 | a font into it unless we have to. | 9 | a font into it unless we have to. |
| 5 | 10 | ||
diff --git a/src/w32term.c b/src/w32term.c index 57455303ed5..25ecccfd6ba 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1846,6 +1846,7 @@ x_draw_glyph_string_background (s, force_p) | |||
| 1846 | || s->font_not_found_p | 1846 | || s->font_not_found_p |
| 1847 | || s->extends_to_end_of_line_p | 1847 | || s->extends_to_end_of_line_p |
| 1848 | || s->font->bdf | 1848 | || s->font->bdf |
| 1849 | || cleartype_active | ||
| 1849 | || force_p) | 1850 | || force_p) |
| 1850 | { | 1851 | { |
| 1851 | x_clear_glyph_string_rect (s, s->x, s->y + box_line_width, | 1852 | x_clear_glyph_string_rect (s, s->x, s->y + box_line_width, |
| @@ -1874,7 +1875,8 @@ x_draw_glyph_string_foreground (s) | |||
| 1874 | else | 1875 | else |
| 1875 | x = s->x; | 1876 | x = s->x; |
| 1876 | 1877 | ||
| 1877 | if (s->for_overlaps || (s->background_filled_p && s->hl != DRAW_CURSOR)) | 1878 | if (s->for_overlaps || (s->background_filled_p && s->hl != DRAW_CURSOR) |
| 1879 | || cleartype_active) | ||
| 1878 | SetBkMode (s->hdc, TRANSPARENT); | 1880 | SetBkMode (s->hdc, TRANSPARENT); |
| 1879 | else | 1881 | else |
| 1880 | SetBkMode (s->hdc, OPAQUE); | 1882 | SetBkMode (s->hdc, OPAQUE); |