]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/fontenum.cpp
Hopefully fixed library names generated by wx-config for OS/2's PM port.
[wxWidgets.git] / src / msw / fontenum.cpp
index a571fa95c2220de7c724458eb86592a23babdabb..8dca8b0909b1452143db2d93bdc2e74d30df23ad 100644 (file)
@@ -31,6 +31,7 @@
 #if wxUSE_FONTMAP
 
 #ifndef WX_PRECOMP
+    #include "wx/gdicmn.h"
     #include "wx/font.h"
     #include "wx/encinfo.h"
 #endif
@@ -165,7 +166,7 @@ void wxFontEnumeratorHelper::DoEnumerate()
                          (LPARAM)this) ;
 #else // __WIN32__
     LOGFONT lf;
-    lf.lfCharSet = m_charset;
+    lf.lfCharSet = (BYTE)m_charset;
     wxStrncpy(lf.lfFaceName, m_facename, WXSIZEOF(lf.lfFaceName));
     lf.lfPitchAndFamily = 0;
     ::EnumFontFamiliesEx(hDC, &lf, (wxFONTENUMPROC)wxFontEnumeratorProc,