summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Ciccani <klan@directfb.org>2008-02-08 12:03:53 +0100
committerJosé Fonseca <jfonseca@vmware.com>2011-07-11 20:03:35 +0100
commit3133ec5a592935ac1dc2a89fd94a31607b1f4763 (patch)
tree4fdef79640b6974b6473abf8193cf9e201422bea
parent2926a95ae8b9494a3eb795d52ad112d297aa6d6c (diff)
downloadglut-3133ec5a592935ac1dc2a89fd94a31607b1f4763.tar.gz
When converting microseconds to milliseconds, round to the next integer.
-rw-r--r--src/glut/directfb/callback.c2
1 files changed, 1 insertions, 1 deletions
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;
}