diff options
author | Marcus Comstedt | 2003-03-03 21:40:31 +0000 |
---|---|---|
committer | Marcus Comstedt | 2003-03-03 21:40:31 +0000 |
commit | cf13cd3f33c96961e0ed3345d86e2921f016ed5b (patch) | |
tree | 870ca7b445e5155e041670052c3d497073cf6689 /backends/dc | |
parent | f01d67ab9c5fddc271dfb9cc41fed3766ba367b8 (diff) | |
download | scummvm-rg350-cf13cd3f33c96961e0ed3345d86e2921f016ed5b.tar.gz scummvm-rg350-cf13cd3f33c96961e0ed3345d86e2921f016ed5b.tar.bz2 scummvm-rg350-cf13cd3f33c96961e0ed3345d86e2921f016ed5b.zip |
Don't keep a backlog of missed deadlines for event polling...
svn-id: r6674
Diffstat (limited to 'backends/dc')
-rw-r--r-- | backends/dc/input.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/dc/input.cpp b/backends/dc/input.cpp index 9505f22983..f491c07869 100644 --- a/backends/dc/input.cpp +++ b/backends/dc/input.cpp @@ -149,6 +149,8 @@ bool OSystem_Dreamcast::poll_event(Event *event) if(((int)(t-_devpoll))<0) return false; _devpoll += USEC_TO_TIMER(17000); + if(((int)(t-_devpoll))>=0) + _devpoll = t + USEC_TO_TIMER(17000); int mask = getimask(); setimask(15); checkSound(); |