diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/mTextControl/src/FormattedTextDraw.cpp | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/mTextControl/src/FormattedTextDraw.cpp')
-rw-r--r-- | plugins/mTextControl/src/FormattedTextDraw.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mTextControl/src/FormattedTextDraw.cpp b/plugins/mTextControl/src/FormattedTextDraw.cpp index 0762e779e9..be42fade65 100644 --- a/plugins/mTextControl/src/FormattedTextDraw.cpp +++ b/plugins/mTextControl/src/FormattedTextDraw.cpp @@ -35,7 +35,7 @@ DWORD CALLBACK EditStreamInCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG cb, PCOOKIE pCookie = (PCOOKIE) dwCookie;
if (pCookie->isUnicode)
{
- if((pCookie->dwSize - pCookie->dwCount)*sizeof(WCHAR) < (DWORD)cb)
+ if ((pCookie->dwSize - pCookie->dwCount)*sizeof(WCHAR) < (DWORD)cb)
*pcb = (pCookie->dwSize - pCookie->dwCount)*sizeof(WCHAR);
else
*pcb = cb&~1UL;
@@ -497,13 +497,13 @@ HRESULT CFormattedTextDraw::CharFormatFromHFONT(CHARFORMAT2W* pCF, HFONT hFont) if(lf.lfWeight < FW_BOLD)
pCF->dwEffects &= ~CFE_BOLD;
- if(!lf.lfItalic)
+ if (!lf.lfItalic)
pCF->dwEffects &= ~CFE_ITALIC;
- if(!lf.lfUnderline)
+ if (!lf.lfUnderline)
pCF->dwEffects &= ~CFE_UNDERLINE;
- if(!lf.lfStrikeOut)
+ if (!lf.lfStrikeOut)
pCF->dwEffects &= ~CFE_STRIKEOUT;
pCF->dwMask = CFM_ALL | CFM_BACKCOLOR | CFM_STYLE;
|