[glut-directfb] When converting microseconds to milliseconds, round to the next integer.

This commit is contained in:
Claudio Ciccani
2008-02-08 12:03:53 +01:00
parent 70908a793b
commit 5edede94bb
+1 -1
View File
@@ -278,7 +278,7 @@ __glutGetTimeout( int *ret_msec )
gettimeofday( &now, NULL );
*ret_msec = (time->tv_sec - now.tv_sec) * 1000 +
(time->tv_usec - now.tv_usec + 500) / 1000;
(time->tv_usec - now.tv_usec + 999) / 1000;
return GL_TRUE;
}