mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 16:32:57 +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 */
|
/* init font for text tool */
|
||||||
lfTextFont.lfHeight = 0;
|
ZeroMemory(&lfTextFont, sizeof(lfTextFont));
|
||||||
lfTextFont.lfWidth = 0;
|
|
||||||
lfTextFont.lfEscapement = 0;
|
|
||||||
lfTextFont.lfOrientation = 0;
|
|
||||||
lfTextFont.lfWeight = FW_NORMAL;
|
lfTextFont.lfWeight = FW_NORMAL;
|
||||||
lfTextFont.lfItalic = FALSE;
|
|
||||||
lfTextFont.lfUnderline = FALSE;
|
|
||||||
lfTextFont.lfStrikeOut = FALSE;
|
|
||||||
lfTextFont.lfCharSet = DEFAULT_CHARSET;
|
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);
|
hfontTextFont = CreateFontIndirect(&lfTextFont);
|
||||||
|
|
||||||
hProgInstance = hThisInstance;
|
hProgInstance = hThisInstance;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue