From 17afeaa80ee66836680953da0827fc47b0f00767 Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Sun, 22 Oct 2006 18:54:55 +0000 Subject: delayMillis() should now cope with delays over 20 minutes without overflowing. svn-id: r24456 --- backends/platform/dc/time.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/platform') diff --git a/backends/platform/dc/time.cpp b/backends/platform/dc/time.cpp index 1912bed773..c3e664a1e3 100644 --- a/backends/platform/dc/time.cpp +++ b/backends/platform/dc/time.cpp @@ -48,7 +48,7 @@ void OSystem_Dreamcast::delayMillis(uint msecs) { getMillis(); unsigned int t, start = Timer(); - int time = (((unsigned int)msecs)*100000U)>>11; + int time = (((unsigned int)msecs)*3125U)>>6; while(((int)((t = Timer())-start))handler(); -- cgit v1.2.3