summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15/src/LCDFramework/CLCDTextObject.cpp
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 00:07:01 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 00:07:01 +0000
commitb2fad485cd5b41744ef0cc4a02722c021afd926c (patch)
treeaa19403cd699066600e8306be8ad33e4a17fba6f /plugins/MirandaG15/src/LCDFramework/CLCDTextObject.cpp
parentfc62f1f1e1f8af40a1f7efe0ba3afc358fb66ef3 (diff)
ZeroMemory -> memset, few bugs fised
git-svn-id: http://svn.miranda-ng.org/main/trunk@11184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirandaG15/src/LCDFramework/CLCDTextObject.cpp')
-rw-r--r--plugins/MirandaG15/src/LCDFramework/CLCDTextObject.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MirandaG15/src/LCDFramework/CLCDTextObject.cpp b/plugins/MirandaG15/src/LCDFramework/CLCDTextObject.cpp
index 1e06d87774..9d49c40aa8 100644
--- a/plugins/MirandaG15/src/LCDFramework/CLCDTextObject.cpp
+++ b/plugins/MirandaG15/src/LCDFramework/CLCDTextObject.cpp
@@ -11,7 +11,7 @@ CLCDTextObject::CLCDTextObject()
m_hFont = NULL;
m_iFontHeight = 0;
// Initialize DRAWTEXTPARAMS
- ZeroMemory(&m_dtp, sizeof(DRAWTEXTPARAMS));
+ memset(&m_dtp, 0, sizeof(DRAWTEXTPARAMS));
m_dtp.cbSize = sizeof(DRAWTEXTPARAMS);
// Initialize alignment
m_iTextFormat = m_iTextAlignment = (DT_LEFT | DT_NOPREFIX);
@@ -107,7 +107,7 @@ void CLCDTextObject::SetFontFaceName(tstring strFontName)
return;
LOGFONT lf;
- ZeroMemory(&lf, sizeof(lf));
+ memset(&lf, 0, sizeof(lf));
GetObject(m_hFont, sizeof(LOGFONT), &lf);
_tcsncpy(lf.lfFaceName, strFontName.c_str(), LF_FACESIZE);
@@ -121,7 +121,7 @@ void CLCDTextObject::SetFontFaceName(tstring strFontName)
void CLCDTextObject::SetFontPointSize(int nPointSize)
{
LOGFONT lf;
- ZeroMemory(&lf, sizeof(lf));
+ memset(&lf, 0, sizeof(lf));
GetObject(m_hFont, sizeof(LOGFONT), &lf);
lf.lfHeight = -MulDiv(nPointSize, 96, 72);
@@ -134,7 +134,7 @@ void CLCDTextObject::SetFontPointSize(int nPointSize)
//************************************************************************
void CLCDTextObject::SetFontItalic(bool flag) {
LOGFONT lf;
- ZeroMemory(&lf, sizeof(lf));
+ memset(&lf, 0, sizeof(lf));
GetObject(m_hFont, sizeof(LOGFONT), &lf);
lf.lfItalic = flag;
@@ -148,7 +148,7 @@ void CLCDTextObject::SetFontItalic(bool flag) {
void CLCDTextObject::SetFontWeight(int nWeight)
{
LOGFONT lf;
- ZeroMemory(&lf, sizeof(lf));
+ memset(&lf, 0, sizeof(lf));
GetObject(m_hFont, sizeof(LOGFONT), &lf);
lf.lfWeight = nWeight;