mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[MSPAINT] Simplify lfTextFont initialization
This commit is contained in:
parent
2acc689c58
commit
3a8c25d7f3
1 changed files with 1 additions and 12 deletions
|
@ -161,20 +161,9 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument
|
|||
};
|
||||
|
||||
/* init font for text tool */
|
||||
lfTextFont.lfHeight = 0;
|
||||
lfTextFont.lfWidth = 0;
|
||||
lfTextFont.lfEscapement = 0;
|
||||
lfTextFont.lfOrientation = 0;
|
||||
ZeroMemory(&lfTextFont, sizeof(lfTextFont));
|
||||
lfTextFont.lfWeight = FW_NORMAL;
|
||||
lfTextFont.lfItalic = FALSE;
|
||||
lfTextFont.lfUnderline = FALSE;
|
||||
lfTextFont.lfStrikeOut = FALSE;
|
||||
lfTextFont.lfCharSet = DEFAULT_CHARSET;
|
||||
lfTextFont.lfOutPrecision = OUT_DEFAULT_PRECIS;
|
||||
lfTextFont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
||||
lfTextFont.lfQuality = DEFAULT_QUALITY;
|
||||
lfTextFont.lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE;
|
||||
lstrcpy(lfTextFont.lfFaceName, _T(""));
|
||||
hfontTextFont = CreateFontIndirect(&lfTextFont);
|
||||
|
||||
hProgInstance = hThisInstance;
|
||||
|
|
Loading…
Reference in a new issue