https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3a8c25d7f36d87655314f…
commit 3a8c25d7f36d87655314f5e77d97892901080f2e
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Dec 24 04:16:44 2019 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Tue Dec 24 04:17:02 2019 +0900
[MSPAINT] Simplify lfTextFont initialization
---
base/applications/mspaint/main.cpp | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/base/applications/mspaint/main.cpp b/base/applications/mspaint/main.cpp
index 2bc690ef1a5..57857b37954 100644
--- a/base/applications/mspaint/main.cpp
+++ b/base/applications/mspaint/main.cpp
@@ -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;