Dylan Smith : gdi32: Provide a non-blank font face name for ANSI_FIXED_FONT .

Alexandre Julliard julliard at winehq.org
Thu Mar 4 11:21:41 CST 2010


Module: wine
Branch: master
Commit: e2d7da06047e40b6f3a0e174e22a70fe59d2c93d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e2d7da06047e40b6f3a0e174e22a70fe59d2c93d

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Thu Mar  4 05:17:29 2010 -0500

gdi32: Provide a non-blank font face name for ANSI_FIXED_FONT.

This patch avoids using the wrong font when this stock font is selected,
which could be seen by modifying notepad to send WM_SETFONT to the edit
control with GetStockObject(ANSI_FIXED_FONT) for wParam.

---

 dlls/gdi32/gdiobj.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/gdiobj.c b/dlls/gdi32/gdiobj.c
index 3c8bdfa..3f84f9c 100644
--- a/dlls/gdi32/gdiobj.c
+++ b/dlls/gdi32/gdiobj.c
@@ -89,7 +89,8 @@ static const LOGFONTW OEMFixedFont =
 
 static const LOGFONTW AnsiFixedFont =
 { 12, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
-  0, 0, DEFAULT_QUALITY, FIXED_PITCH | FF_MODERN, {'\0'} };
+  0, 0, DEFAULT_QUALITY, FIXED_PITCH | FF_MODERN,
+  {'C','o','u','r','i','e','r','\0'} };
 
 static const LOGFONTW AnsiVarFont =
 { 12, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,




More information about the wine-cvs mailing list