mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 19:43:31 +08:00
[MSPAINT] Do type-cast (BYTE) for lfItalic and lfUnderline
CORE-19094
This commit is contained in:
parent
4306e261ee
commit
409df2355e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user