[ros-diffs] [fireball] 45678: Maarten Kroese UITOOLS95_DrawFrameCaption improvements: - Change FIXED_PITCH to DEFAULT_PITCH (because Marlett is not a fixed pitch font). - Change from SYMBOL_CHARSET to DEFAULT_CHARSET, it's correct according to MSDN, because SYMBOL_CHARSET implies that it can fall back to another font, but that is never what we want. - FW_NORMAL to FW_DONTCARE. - This patch should be sent to Wine, however their Marlett font hides these problems.

fireball at svn.reactos.org fireball at svn.reactos.org
Tue Feb 23 21:58:13 CET 2010


Author: fireball
Date: Tue Feb 23 21:58:12 2010
New Revision: 45678

URL: http://svn.reactos.org/svn/reactos?rev=45678&view=rev
Log:
Maarten Kroese
UITOOLS95_DrawFrameCaption improvements:
- Change FIXED_PITCH to DEFAULT_PITCH (because Marlett is not a fixed pitch font).
- Change from SYMBOL_CHARSET to DEFAULT_CHARSET, it's correct according to MSDN, because SYMBOL_CHARSET implies that it can fall back to another font, but that is never what we want.
- FW_NORMAL to FW_DONTCARE.
- This patch should be sent to Wine, however their Marlett font hides these problems.

Modified:
    branches/arwinss/reactos/dll/win32/user32/uitools.c

Modified: branches/arwinss/reactos/dll/win32/user32/uitools.c
URL: http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/dll/win32/user32/uitools.c?rev=45678&r1=45677&r2=45678&view=diff
==============================================================================
--- branches/arwinss/reactos/dll/win32/user32/uitools.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/dll/win32/user32/uitools.c [iso-8859-1] Tue Feb 23 21:58:12 2010
@@ -924,9 +924,9 @@
         return FALSE;
     }
     
-    hf = CreateFontW(-SmallDiam, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE,
-                    SYMBOL_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
-                    DEFAULT_QUALITY, FIXED_PITCH|FF_DONTCARE, glyphFontName);
+    hf = CreateFontW(-SmallDiam, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE,
+                    DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
+                    DEFAULT_QUALITY, DEFAULT_PITCH|FF_DONTCARE, glyphFontName);
     alignsave = SetTextAlign(dc, TA_TOP|TA_LEFT);
     bksave = SetBkMode(dc, TRANSPARENT);
     clrsave = GetTextColor(dc);




More information about the Ros-diffs mailing list