]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_draw_glyph_string_foreground): Set background mode to TRANSPARENT before
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 27 Oct 2006 22:37:48 +0000 (22:37 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 27 Oct 2006 22:37:48 +0000 (22:37 +0000)
using overstrike to simulate bold faces.

src/ChangeLog
src/w32term.c

index d4f67a927de21dd498ae5fbedc19068da1a57e76..4118fc6f2d887119d7cc5d709442a640f1fd9e05 100644 (file)
@@ -1,6 +1,15 @@
+2006-10-27  Ben North  <ben@redfrontdoor.org>  (tiny change)
+
+       * w32term.c (x_draw_glyph_string_foreground): Set background mode
+       to TRANSPARENT before using overstrike to simulate bold faces.
+
+       * xfaces.c (best_matching_font): Fix logic to decide whether to
+       use overstriking to simulate bold-face (it was reversed).
+
 2006-10-23  Kim F. Storm  <storm@cua.dk>
 
-       * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not initialized.
+       * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
+       initialized.
 
        * keyboard.c (read_char): Make an element (t . EVENT) in
        unread-command-events add EVENT to the current command's key sequence.
        (x_draw_glyph_string_foreground): Use overstrike when needed.
        (x_draw_composite_glyph_string_foreground): Likewise.
        Use mac_draw_image_string_16 instead of mac_draw_string_16.
-       (mac_load_query_font): Rename from XLoadQueryFont.  Take argument F
-       instead of DPY.  All uses changed.  Don't save/restore font.
+       (mac_load_query_font): Rename from XLoadQueryFont.  Take argument
+       instead of DPY.  All uses changed.  Don't save/restore font.
 
 2006-10-07  Ralf Angeli  <angeli@caeruleus.net>
 
 
 2006-09-30  Eli Zaretskii  <eliz@gnu.org>
 
-       * config.in Regenerated.
+       * config.in: Regenerated.
 
 2006-09-29  Juri Linkov  <juri@jurta.org>
 
index c00fdb8923c8b1d4defdae89f208a328392c4e07..e22a9dbe1ab344a62304bbc8ff9bd1d39fa7d065 100644 (file)
@@ -1591,7 +1591,10 @@ x_draw_glyph_string_foreground (s)
        {
          /* For overstriking (to simulate bold-face), draw the
             characters again shifted to the right by one pixel.  */
+         int old_BkMode = SetBkMode (s->hdc, TRANSPARENT);
          w32_text_out (s, x + 1, s->ybase - boff, s->char2b, s->nchars);
+         if (old_BkMode && old_BkMode != TRANSPARENT)
+           SetBkMode (s->hdc, old_BkMode);
        }
     }
   if (s->font && s->font->hfont)