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 /firmware/target/hosted/sdl | |
parent | 0ba13e45f09f8df00c8204e192d2652507516fbb (diff) | |
download | rockbox-6cbacb1b3eef1ea9c2f1c9ef58795421912cfb90.tar.gz rockbox-6cbacb1b3eef1ea9c2f1c9ef58795421912cfb90.zip |
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
Diffstat (limited to 'firmware/target/hosted/sdl')
-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 c4d4ee220e..5c13352356 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) | |||
137 | sim_exit_irq_handler(); | 137 | sim_exit_irq_handler(); |
138 | } | 138 | } |
139 | 139 | ||
140 | return 1; | 140 | return interval; |
141 | } | 141 | } |
142 | 142 | ||
143 | void tick_start(unsigned int interval_in_ms) | 143 | void tick_start(unsigned int interval_in_ms) |