summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-07 20:05:48 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-07 20:05:48 +0000
commitff3ae414e0f1ed93e480129eddea59f9748d51a3 (patch)
tree810e70462d66106acf87b04be806447d08d633df
parentaed5f79e3625bf7f380c92b0f38f1f090b9f484f (diff)
fix for both hot-tracked & selected translucent items
git-svn-id: http://svn.miranda-ng.org/main/trunk@2238 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--src/core/stdclist/src/clcpaint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/stdclist/src/clcpaint.cpp b/src/core/stdclist/src/clcpaint.cpp
index 6684e8f5c6..9cd3b59d8f 100644
--- a/src/core/stdclist/src/clcpaint.cpp
+++ b/src/core/stdclist/src/clcpaint.cpp
@@ -497,10 +497,10 @@ void PaintClc(HWND hwnd, struct ClcData *dat, HDC hdc, RECT * rcPaint)
int mode = ILD_NORMAL;
if (selected)
- mode = ILD_SELECTED;
+ mode = (dat->exStyle & CLS_EX_NOTRANSLUCENTSEL) ? ILD_NORMAL : ILD_SELECTED;
else if (hottrack) {
colourFg = dat->hotTextColour;
- mode = dat->exStyle & CLS_EX_NOTRANSLUCENTSEL ? ILD_NORMAL : ILD_BLEND50;
+ mode = (dat->exStyle & CLS_EX_NOTRANSLUCENTSEL) ? ILD_NORMAL : ILD_BLEND50;
}
else if (group->cl.items[group->scanIndex]->type == CLCIT_CONTACT && group->cl.items[group->scanIndex]->flags & CONTACTF_NOTONLIST)
colourFg = dat->fontInfo[FONTID_NOTONLIST].colour;