diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-11-21 23:55:39 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-11-21 23:55:39 +0000 |
commit | b51f7dfc9b507ab9db12fe90b2ddad708f435e06 (patch) | |
tree | efcef3411689401da21795d700a0741f8ab1072b /uisimulator/x11/thread.c | |
parent | e68680ac310adb8373c9f3a5194466766d64cf37 (diff) | |
download | rockbox-b51f7dfc9b507ab9db12fe90b2ddad708f435e06.tar.gz rockbox-b51f7dfc9b507ab9db12fe90b2ddad708f435e06.zip |
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
Diffstat (limited to 'uisimulator/x11/thread.c')
-rw-r--r-- | uisimulator/x11/thread.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | long current_tick = 0; | 32 | long current_tick = 0; |
33 | extern void button_tick(void); | 33 | extern void sim_tick_tasks(void); |
34 | 34 | ||
35 | static void msleep(int msec) | 35 | static void msleep(int msec) |
36 | { | 36 | { |
@@ -59,10 +59,8 @@ static void update_tick_thread() | |||
59 | + (now.tv_usec - start.tv_usec) / (1000000/HZ); | 59 | + (now.tv_usec - start.tv_usec) / (1000000/HZ); |
60 | if (new_tick > current_tick) | 60 | if (new_tick > current_tick) |
61 | { | 61 | { |
62 | sim_tick_tasks(); | ||
62 | current_tick = new_tick; | 63 | current_tick = new_tick; |
63 | button_tick(); /* Dirty call to button.c. This should probably | ||
64 | * be implemented as a tick task the same way | ||
65 | * as on the target. */ | ||
66 | } | 64 | } |
67 | } | 65 | } |
68 | } | 66 | } |