Don't access "time" directly.

This commit is contained in:
Poul-Henning Kamp 1998-03-29 12:18:12 +00:00
parent 6efcc7f11d
commit f0e35d62a2

View File

@ -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);