From 4fd3d89b24b32075110d9e608d4f62e62e27b8ae Mon Sep 17 00:00:00 2001 From: johns <> Date: Sun, 31 Mar 2002 17:55:41 +0000 Subject: [PATCH] The timeout value was wrong. --- src/video/X11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/X11.cpp b/src/video/X11.cpp index 5f0fd5b24..0ac335c02 100644 --- a/src/video/X11.cpp +++ b/src/video/X11.cpp @@ -974,7 +974,7 @@ global void WaitEventsOneFrame(const EventCallback* callbacks) // ticks=X11GetTicks(); if( !VideoInterrupts && ticks+11<NextFrameTicks ) { - tv.tv_usec=ticks*1000; + tv.tv_usec=(NextFrameTicks-ticks)*1000; } while( ticks>=NextFrameTicks ) { ++VideoInterrupts;