diff options
-rw-r--r-- | uisimulator/sdl/thread-sdl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/sdl/thread-sdl.c b/uisimulator/sdl/thread-sdl.c index 5d2fe0b522..aac8e2fbb9 100644 --- a/uisimulator/sdl/thread-sdl.c +++ b/uisimulator/sdl/thread-sdl.c | |||
@@ -152,7 +152,7 @@ void sleep_thread(int ticks) | |||
152 | current = running; | 152 | current = running; |
153 | current->statearg = STATE_SLEEPING; | 153 | current->statearg = STATE_SLEEPING; |
154 | 154 | ||
155 | SDL_CondWaitTimeout(current->context.c, m, (1000/HZ) * ticks); | 155 | SDL_CondWaitTimeout(current->context.c, m, (1000/HZ) * ticks + (500/HZ)); |
156 | running = current; | 156 | running = current; |
157 | 157 | ||
158 | current->statearg = STATE_RUNNING; | 158 | current->statearg = STATE_RUNNING; |