[MSPAINT] Do type-cast (BYTE) for lfItalic and lfUnderline

CORE-19094
This commit is contained in:
Katayama Hirofumi MZ 2023-10-12 19:38:41 +09:00
parent 4306e261ee
commit 409df2355e

View File

@ -340,8 +340,8 @@ void CTextEditWindow::UpdateFont()
ZeroMemory(&lf, sizeof(lf));
lf.lfCharSet = DEFAULT_CHARSET; // registrySettings.CharSet; // Ignore
lf.lfWeight = (registrySettings.Bold ? FW_BOLD : FW_NORMAL);
lf.lfItalic = registrySettings.Italic;
lf.lfUnderline = registrySettings.Underline;
lf.lfItalic = (BYTE)registrySettings.Italic;
lf.lfUnderline = (BYTE)registrySettings.Underline;
lstrcpyn(lf.lfFaceName, registrySettings.strFontName, _countof(lf.lfFaceName));
HDC hdc = GetDC();