From 3133ec5a592935ac1dc2a89fd94a31607b1f4763 Mon Sep 17 00:00:00 2001 From: Claudio Ciccani Date: Fri, 8 Feb 2008 12:03:53 +0100 Subject: When converting microseconds to milliseconds, round to the next integer. --- src/glut/directfb/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glut/directfb/callback.c b/src/glut/directfb/callback.c index 4f23441..7c9768a 100644 --- a/src/glut/directfb/callback.c +++ b/src/glut/directfb/callback.c @@ -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; } -- cgit v1.2.1