diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2010-12-27 12:49:28 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2010-12-27 12:49:28 +0000 |
| commit | 6cbacb1b3eef1ea9c2f1c9ef58795421912cfb90 (patch) | |
| tree | 3c5c7cb1f24601df15d9f1e2397aae2da0789c9e | |
| parent | 0ba13e45f09f8df00c8204e192d2652507516fbb (diff) | |
| download | rockbox-6cbacb1b3eef1ea9c2f1c9ef58795421912cfb90.zip rockbox-6cbacb1b3eef1ea9c2f1c9ef58795421912cfb90.tar.gz rockbox-6cbacb1b3eef1ea9c2f1c9ef58795421912cfb90.tar.bz2 rockbox-6cbacb1b3eef1ea9c2f1c9ef58795421912cfb90.tar.xz | |
Return interval in the SDL timer callback as it should happen in periodic timers.
If the SDL timer resolution was higher than 10ms it would have restarted the timer after 1ms, but it made no difference.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28912 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/target/hosted/sdl/kernel-sdl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/sdl/kernel-sdl.c b/firmware/target/hosted/sdl/kernel-sdl.c index c4d4ee2..5c13352 100644 --- a/firmware/target/hosted/sdl/kernel-sdl.c +++ b/firmware/target/hosted/sdl/kernel-sdl.c @@ -137,7 +137,7 @@ Uint32 tick_timer(Uint32 interval, void *param) sim_exit_irq_handler(); } - return 1; + return interval; } void tick_start(unsigned int interval_in_ms) |