summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-05-28 20:47:49 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-05-28 20:47:49 +0000
commit291a399a0c9b46622791fe253e38775dbf88cc09 (patch)
tree728ca4b21d294f5f0706f32de13db4058e6d2146
parent74e2aad594ed234f83352c386410fd92e269b6f4 (diff)
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@16884 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/Clist_modern/src/modern_clcpaint.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/plugins/Clist_modern/src/modern_clcpaint.cpp b/plugins/Clist_modern/src/modern_clcpaint.cpp
index 40aabd0e9c..fed66f75cb 100644
--- a/plugins/Clist_modern/src/modern_clcpaint.cpp
+++ b/plugins/Clist_modern/src/modern_clcpaint.cpp
@@ -244,24 +244,22 @@ void CLCPaint::AddParam(MODERNMASK *mpModernMask, DWORD dwParamHash, const char*
BOOL CLCPaint::CheckMiniMode(ClcData *dat, BOOL selected)
{
- if ((!dat->bCompactMode /* not mini*/)
- || ((dat->bCompactMode & 0x01) && selected /*mini on selected*/)
- /* || ( TRUE && hot )*/) return FALSE;
+ if (!dat->bCompactMode || ((dat->bCompactMode & 0x01) && selected))
+ return FALSE;
return TRUE;
}
tPaintCallbackProc CLCPaint::PaintCallbackProc(HWND hWnd, HDC hDC, RECT *rcPaint, HRGN, DWORD, void *)
{
- ClcData* dat = (ClcData*)GetWindowLongPtr(hWnd, 0);
- if (!dat) return 0;
- cliPaintClc(hWnd, dat, hDC, rcPaint);
- return NULL;
+ ClcData *dat = (ClcData*)GetWindowLongPtr(hWnd, 0);
+ if (dat)
+ cliPaintClc(hWnd, dat, hDC, rcPaint);
+ return 0;
}
void CLCPaint::_FillQuickHash()
{
- int i;
- for (i = 0; i < hi_LastItem; i++)
+ for (int i = 0; i < hi_LastItem; i++)
HASH[i] = mod_CalcHash(HASHTEXT[i]);
}
@@ -404,7 +402,7 @@ void CLCPaint::_DrawTextSmiley(HDC hdcMem, RECT *free_rc, SIZE * text_size, TCHA
{
if (szText == NULL)
return;
-
+
uTextFormat &= ~DT_RIGHT;
if (plText == NULL) {
if (start) {
@@ -1826,7 +1824,7 @@ void CLCPaint::_DrawLines(HWND hWnd, ClcData *dat, int paintMode, RECT *rcPaint,
SelectClipRgn(pc.hdcMem, NULL);
}
-void CLCPaint::_DrawInsertionMark(ClcData *dat, RECT& clRect, _PaintContext& pc)
+void CLCPaint::_DrawInsertionMark(ClcData *dat, RECT &clRect, _PaintContext &pc)
{
int identation = dat->nInsertionLevel*dat->groupIndent;
int yt = cliGetRowTopY(dat, dat->iInsertionMark);