Draw: Chinesse XP default font issue fixed (thanks kasome)

git-svn-id: svn://ultimatepp.org/upp/trunk@1478 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-08-08 13:25:03 +00:00
parent 203e8aae92
commit 92dd52111b

View file

@ -16,7 +16,7 @@ void GetStdFontSys(String& name, int& height)
NONCLIENTMETRICS ncm;
ncm.cbSize = sizeof(ncm);
::SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(ncm), &ncm, 0);
name = ncm.lfMenuFont.lfFaceName;
name = FromSystemCharset(ncm.lfMenuFont.lfFaceName);
height = abs((int)ncm.lfMenuFont.lfHeight);
#endif
}