Hi
In the svgalib driver, GrMouseGetEventT doesn't set the ev->dtime correctly. The problem is that CLOCKS_PER_SEC reports 1000000 !! despite it is 100 really.
This extract is from /usr/include/bits/time.h:
-------------------- /* ISO/IEC 9899:1990 7.12.1: <time.h> The macro `CLOCKS_PER_SEC' is the number per second of the value returned by the `clock' function. */ /* CAE XSH, Issue 4, Version 2: <time.h> The value of CLOCKS_PER_SEC is required to be 1 million on all XSI-conformant systems. */ # define CLOCKS_PER_SEC 1000000
# ifndef __STRICT_ANSI__ /* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK presents the real value for clock ticks per second for the system. */ # define CLK_TCK 100 # endif --------------------
The workarround is to use CLK_TCK instead of CLOCKS_PER_SEC, but really I don't understand the issue (why sets linux an incorrect value for it?)