diff options
Diffstat (limited to 'plugins/Mwclist/clcutils.c')
-rw-r--r-- | plugins/Mwclist/clcutils.c | 6 |
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;
|