diff options
| author | Juanma Barranquero | 2006-10-27 22:37:48 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2006-10-27 22:37:48 +0000 |
| commit | 4975e69596a64247e8995d1ff9084b98a9a5ed0d (patch) | |
| tree | a816d40f934eaec28c372b4233bcf19aa575e47a /src | |
| parent | 234b59d7bb1bd34f7c0e533be3ab3d47c1f7095a (diff) | |
| download | emacs-4975e69596a64247e8995d1ff9084b98a9a5ed0d.tar.gz emacs-4975e69596a64247e8995d1ff9084b98a9a5ed0d.zip | |
(x_draw_glyph_string_foreground): Set background mode to TRANSPARENT before
using overstrike to simulate bold faces.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 17 | ||||
| -rw-r--r-- | src/w32term.c | 3 |
2 files changed, 16 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d4f67a927de..4118fc6f2d8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,6 +1,15 @@ | |||
| 1 | 2006-10-27 Ben North <ben@redfrontdoor.org> (tiny change) | ||
| 2 | |||
| 3 | * w32term.c (x_draw_glyph_string_foreground): Set background mode | ||
| 4 | to TRANSPARENT before using overstrike to simulate bold faces. | ||
| 5 | |||
| 6 | * xfaces.c (best_matching_font): Fix logic to decide whether to | ||
| 7 | use overstriking to simulate bold-face (it was reversed). | ||
| 8 | |||
| 1 | 2006-10-23 Kim F. Storm <storm@cua.dk> | 9 | 2006-10-23 Kim F. Storm <storm@cua.dk> |
| 2 | 10 | ||
| 3 | * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not initialized. | 11 | * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not |
| 12 | initialized. | ||
| 4 | 13 | ||
| 5 | * keyboard.c (read_char): Make an element (t . EVENT) in | 14 | * keyboard.c (read_char): Make an element (t . EVENT) in |
| 6 | unread-command-events add EVENT to the current command's key sequence. | 15 | unread-command-events add EVENT to the current command's key sequence. |
| @@ -113,8 +122,8 @@ | |||
| 113 | (x_draw_glyph_string_foreground): Use overstrike when needed. | 122 | (x_draw_glyph_string_foreground): Use overstrike when needed. |
| 114 | (x_draw_composite_glyph_string_foreground): Likewise. | 123 | (x_draw_composite_glyph_string_foreground): Likewise. |
| 115 | Use mac_draw_image_string_16 instead of mac_draw_string_16. | 124 | Use mac_draw_image_string_16 instead of mac_draw_string_16. |
| 116 | (mac_load_query_font): Rename from XLoadQueryFont. Take argument F | 125 | (mac_load_query_font): Rename from XLoadQueryFont. Take argument |
| 117 | instead of DPY. All uses changed. Don't save/restore font. | 126 | F instead of DPY. All uses changed. Don't save/restore font. |
| 118 | 127 | ||
| 119 | 2006-10-07 Ralf Angeli <angeli@caeruleus.net> | 128 | 2006-10-07 Ralf Angeli <angeli@caeruleus.net> |
| 120 | 129 | ||
| @@ -157,7 +166,7 @@ | |||
| 157 | 166 | ||
| 158 | 2006-09-30 Eli Zaretskii <eliz@gnu.org> | 167 | 2006-09-30 Eli Zaretskii <eliz@gnu.org> |
| 159 | 168 | ||
| 160 | * config.in Regenerated. | 169 | * config.in: Regenerated. |
| 161 | 170 | ||
| 162 | 2006-09-29 Juri Linkov <juri@jurta.org> | 171 | 2006-09-29 Juri Linkov <juri@jurta.org> |
| 163 | 172 | ||
diff --git a/src/w32term.c b/src/w32term.c index c00fdb8923c..e22a9dbe1ab 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1591,7 +1591,10 @@ x_draw_glyph_string_foreground (s) | |||
| 1591 | { | 1591 | { |
| 1592 | /* For overstriking (to simulate bold-face), draw the | 1592 | /* For overstriking (to simulate bold-face), draw the |
| 1593 | characters again shifted to the right by one pixel. */ | 1593 | characters again shifted to the right by one pixel. */ |
| 1594 | int old_BkMode = SetBkMode (s->hdc, TRANSPARENT); | ||
| 1594 | w32_text_out (s, x + 1, s->ybase - boff, s->char2b, s->nchars); | 1595 | w32_text_out (s, x + 1, s->ybase - boff, s->char2b, s->nchars); |
| 1596 | if (old_BkMode && old_BkMode != TRANSPARENT) | ||
| 1597 | SetBkMode (s->hdc, old_BkMode); | ||
| 1595 | } | 1598 | } |
| 1596 | } | 1599 | } |
| 1597 | if (s->font && s->font->hfont) | 1600 | if (s->font && s->font->hfont) |