From 0107dfc8276d73744bb097d643809205ef21d97b Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 9 Sep 2007 01:59:07 +0000 Subject: UISIMULATOR: Give the host OS some needed context switching hints (which _is_ supposed to work on Linux - but I can't tell on VMWare - and does on Windows). I guess I'll know for sure soon. Give sleep() even more genuine behavior. Add some button driver sync with the rockbox threads that should have been there for some time - this is basically interrupt-like processing as any thread not in the kernel pool should be considered. Make the screendump work again by posting the request. Perhaps help out shutting down for some users but not in the way I'd prefer - to think about. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14646 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/uisdl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'uisimulator/sdl/uisdl.c') diff --git a/uisimulator/sdl/uisdl.c b/uisimulator/sdl/uisdl.c index 37a0e6fe7a..fdd40beb23 100644 --- a/uisimulator/sdl/uisdl.c +++ b/uisimulator/sdl/uisdl.c @@ -41,8 +41,8 @@ extern void app_main (void *); /* mod entry point */ extern void new_key(int key); extern void sim_tick_tasks(void); -extern void sim_io_init(void); -extern void sim_io_shutdown(void); +extern void sim_io_init(void); +extern void sim_io_shutdown(void); void button_event(int key, bool pressed); @@ -69,7 +69,7 @@ Uint32 tick_timer(Uint32 interval, void *param) (void) interval; (void) param; - new_tick = (SDL_GetTicks() - start_tick) * HZ / 1000; + new_tick = (SDL_GetTicks() - start_tick) / (1000/HZ); if (new_tick != current_tick) { long i; -- cgit v1.2.3