]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/font.cpp
corrections for theme brush alignments under X (no more SetOrigin calls)
[wxWidgets.git] / src / msw / font.cpp
index 56778e8b8b24e87c900cb3a7b9d296e717b92bcd..27c2d4b90593f5dee5c42cf51bd5a02c2dde8ec4 100644 (file)
@@ -465,7 +465,7 @@ void wxNativeFontInfo::SetUnderlined(bool underlined)
 
 void wxNativeFontInfo::SetFaceName(wxString facename)
 {
-    wxStrncpy(lf.lfFaceName, facename, sizeof(lf.lfFaceName)/sizeof(WCHAR));
+    wxStrncpy(lf.lfFaceName, facename, WXSIZEOF(lf.lfFaceName));
 }
 
 void wxNativeFontInfo::SetFamily(wxFontFamily family)