summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-06-12 11:27:53 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-06-12 11:27:53 +0000
commitc0bffbb0025c911b4072bd906ab0b4a3864f4404 (patch)
tree13d18c830072769eccc683bf72f19e39e7c55f29 /plugins
parentb770c05a219185d9a87d77906b3c15cc3fd39992 (diff)
Clist_mw highlight bug fix (patch from Awkward)
git-svn-id: http://svn.miranda-ng.org/main/trunk@390 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Mwclist/clcpaint.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Mwclist/clcpaint.cpp b/plugins/Mwclist/clcpaint.cpp
index 498e597d31..952ef930f2 100644
--- a/plugins/Mwclist/clcpaint.cpp
+++ b/plugins/Mwclist/clcpaint.cpp
@@ -371,8 +371,10 @@ void InternalPaintClc(HWND hwnd,struct ClcData *dat,HDC hdc,RECT *rcPaint)
//background
if (selected) {
+ // default value - paint on text
+ int x=dat->leftMargin+indent*dat->groupIndent+checkboxWidth+dat->iconXSpace-2+subident;
+ ImageList_DrawEx(dat->himlHighlight,0,hdcMem,x,y,min(width+5,clRect.right-x),dat->rowHeight,CLR_NONE,CLR_NONE,dat->exStyle&CLS_EX_NOTRANSLUCENTSEL?ILD_NORMAL:ILD_BLEND25);
SetTextColor(hdcMem,dat->selTextColour);
- break;
}
else if (hottrack)
SetHotTrackColour(hdcMem,dat);