diff src/w32term.c @ 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 f6b18b9949d1
children 8eceefbbcde7 034f67f59091 7eeafaaa9eab
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)