]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/fontutil.cpp
carbon cfm fixes
[wxWidgets.git] / src / msw / fontutil.cpp
index dbf009105ad3ed52d14c4a266626605177e3b60f..266971d30a792b4ea46cb1fab9a9320fee98a16d 100644 (file)
@@ -164,7 +164,7 @@ bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
     LOGFONT lf;
     wxZeroMemory(lf);       // all default values
 
-    lf.lfCharSet = info.charset;
+    lf.lfCharSet = (BYTE)info.charset;
     wxStrncpy(lf.lfFaceName, info.facename, WXSIZEOF(lf.lfFaceName));
 
     HFONT hfont = ::CreateFontIndirect(&lf);