Don't access "time" directly.
This commit is contained in:
parent
6efcc7f11d
commit
f0e35d62a2
@ -1558,9 +1558,9 @@ loop:
|
||||
* happen "recently", i.e. before
|
||||
* less than half a second
|
||||
*/
|
||||
gettime(&now);
|
||||
getmicrotime(&now);
|
||||
timevalsub(&now, &mouse.lastmove);
|
||||
mouse.lastmove = time;
|
||||
getmicrotime(&mouse.lastmove);
|
||||
accel = (now.tv_sec == 0
|
||||
&& now.tv_usec
|
||||
< mousedef.acceltime);
|
||||
|
Loading…
x
Reference in New Issue
Block a user