summaryrefslogtreecommitdiff
path: root/src/glut
diff options
context:
space:
mode:
authorClaudio Ciccani <klan@directfb.org>2008-02-08 12:03:53 +0100
committerClaudio Ciccani <klan@directfb.org>2008-02-08 12:03:53 +0100
commit5edede94bb506c358f1ee1450504c584c8f665ee (patch)
tree5137248b5391cce635d9a4d9f322ce2fee371272 /src/glut
parent70908a793b7755c973fe024844185ff9e14924ea (diff)
[glut-directfb] When converting microseconds to milliseconds, round to the next integer.
Diffstat (limited to 'src/glut')
-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 4f2344116..7c9768aac 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;
}