From: Claudio Ciccani Date: Fri, 8 Feb 2008 11:03:53 +0000 (+0100) Subject: [glut-directfb] When converting microseconds to milliseconds, round to the next integer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5edede94bb506c358f1ee1450504c584c8f665ee;p=mesa.git [glut-directfb] When converting microseconds to milliseconds, round to the next integer. --- diff --git a/src/glut/directfb/callback.c b/src/glut/directfb/callback.c index 4f23441167a..7c9768aac0a 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; }