From ff3ae414e0f1ed93e480129eddea59f9748d51a3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 7 Nov 2012 20:05:48 +0000 Subject: fix for both hot-tracked & selected translucent items git-svn-id: http://svn.miranda-ng.org/main/trunk@2238 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdclist/src/clcpaint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3