changeset 73510:2c1760046d15

(x_draw_glyph_string_foreground): Set background mode to TRANSPARENT before using overstrike to simulate bold faces.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 27 Oct 2006 22:35:49 +0000
parents 2cb36b82c88a
children f14918c52d74
files src/w32term.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32term.c	Fri Oct 27 22:34:22 2006 +0000
+++ b/src/w32term.c	Fri Oct 27 22:35:49 2006 +0000
@@ -1591,7 +1591,10 @@
 	{
 	  /* 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)