X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cbe874bd32f35beb3ed8d019c5a24df21a219f8f..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/msw/fontenum.cpp diff --git a/src/msw/fontenum.cpp b/src/msw/fontenum.cpp index a571fa95c2..8dca8b0909 100644 --- a/src/msw/fontenum.cpp +++ b/src/msw/fontenum.cpp @@ -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,