summaryrefslogtreecommitdiff
path: root/plugins/Mwclist/clcutils.c
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
commit78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch)
tree8512c50df70b8dd80c919e88ade3419207c95956 /plugins/Mwclist/clcutils.c
parentce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff)
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Mwclist/clcutils.c')
-rw-r--r--plugins/Mwclist/clcutils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Mwclist/clcutils.c b/plugins/Mwclist/clcutils.c
index 5a7aa3d992..35ddf0ccdc 100644
--- a/plugins/Mwclist/clcutils.c
+++ b/plugins/Mwclist/clcutils.c
@@ -177,11 +177,11 @@ void ScrollTo(HWND hwnd,struct ClcData *dat,int desty,int noSmooth)
if(desty>maxy) desty=maxy;
if(desty<0) desty=0;
if(abs(desty-dat->yScroll)<4) noSmooth=1;
- if(!noSmooth && dat->exStyle&CLS_EX_NOSMOOTHSCROLLING) noSmooth=1;
+ if (!noSmooth && dat->exStyle&CLS_EX_NOSMOOTHSCROLLING) noSmooth=1;
previousy=dat->yScroll;
- if(!noSmooth) {
+ if (!noSmooth) {
startTick=GetTickCount();
- for(;;) {
+ for (;;) {
nowTick=GetTickCount();
if(nowTick>=startTick+dat->scrollTime) break;
dat->yScroll=oldy+(desty-oldy)*(int)(nowTick-startTick)/dat->scrollTime;