From b51f7dfc9b507ab9db12fe90b2ddad708f435e06 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 21 Nov 2005 23:55:39 +0000 Subject: Backlight handling: * Added 'Caption Backlight' and 'Backlight On When Charging' for the iriver remote LCD. * Enabled the backlight code for the simulator, and prepared backlight simulation. It's only a stub atm, writing messages to the console window. * Added tick task handling to the simulators for this to work. * Code cleanup in backlight.c, less dead code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8034 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/x11/thread.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'uisimulator/x11/thread.c') diff --git a/uisimulator/x11/thread.c b/uisimulator/x11/thread.c index f3fe868fbc..6d9139c35d 100644 --- a/uisimulator/x11/thread.c +++ b/uisimulator/x11/thread.c @@ -30,7 +30,7 @@ #endif long current_tick = 0; -extern void button_tick(void); +extern void sim_tick_tasks(void); static void msleep(int msec) { @@ -59,10 +59,8 @@ static void update_tick_thread() + (now.tv_usec - start.tv_usec) / (1000000/HZ); if (new_tick > current_tick) { + sim_tick_tasks(); current_tick = new_tick; - button_tick(); /* Dirty call to button.c. This should probably - * be implemented as a tick task the same way - * as on the target. */ } } } -- cgit v1.2.3