diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-20 17:38:06 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-20 17:38:06 +0000 |
commit | 6183362250af373372830fbd5d4d952b0038bbfc (patch) | |
tree | 986e7c937720b5d93e00dcc2e7ee3b2f47a7286d /plugins/Clist_modern/src/modern_clcutils.cpp | |
parent | 7e4a5794928702bf435f3d7be339a6c553fe618a (diff) |
more warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@6558 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clcutils.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_clcutils.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/plugins/Clist_modern/src/modern_clcutils.cpp b/plugins/Clist_modern/src/modern_clcutils.cpp index 69eb2ddd9e..3fb5c65ab8 100644 --- a/plugins/Clist_modern/src/modern_clcutils.cpp +++ b/plugins/Clist_modern/src/modern_clcutils.cpp @@ -181,11 +181,8 @@ void cliScrollTo(HWND hwnd,ClcData *dat,int desty,int noSmooth) }
}
dat->yScroll = desty;
- if ((dat->backgroundBmpUse&CLBF_SCROLL || dat->hBmpBackground == NULL) && FALSE)
- ScrollWindowEx(hwnd, 0, previousy-dat->yScroll,NULL,NULL,NULL,NULL,SW_INVALIDATE);
- else
- CLUI__cliInvalidateRect(hwnd,NULL,FALSE);
- SetScrollPos(hwnd,SB_VERT,dat->yScroll,TRUE);
+ CLUI__cliInvalidateRect(hwnd, NULL, FALSE);
+ SetScrollPos(hwnd, SB_VERT, dat->yScroll, TRUE);
}
@@ -400,11 +397,8 @@ int GetDropTargetInformation(HWND hwnd,ClcData *dat,POINT pt) {
if (bottomItem == -1 && contact->type != CLCIT_GROUP && contact->groupId == 0)
{
- if (contact->type != CLCIT_GROUP && contact->groupId == 0)
- {
- bottomItem = topItem;
- cliGetRowByIndex(dat,bottomItem,&bottomcontact,&bottomgroup);
- }
+ bottomItem = topItem;
+ cliGetRowByIndex(dat,bottomItem,&bottomcontact,&bottomgroup);
}
if (bottomItem != -1 && bottomcontact->type != CLCIT_GROUP)
{
|