summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-01-05 09:59:11 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-01-05 09:59:11 +0000
commit8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c (patch)
treea99ace107474dd7adaf39055d4c851a294c366b5 /apps/main.c
parente74cc6d9da7c7eab96cb06147903c75c1f9c06c7 (diff)
downloadrockbox-8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c.zip
rockbox-8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c.tar.gz
rockbox-8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c.tar.bz2
rockbox-8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c.tar.xz
redo how the statusbar updates are done. send the EVENT_GUI_ACTIONUPDATE event every time get_action() is called. The event wont be as realiable (timewise) as before, but seems to work better
This also fixes FS#9761. Also set the lcd font back to the ui font from the debug screens which use sysfont git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19681 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/apps/main.c b/apps/main.c
index d473e66..4e66a85 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -120,16 +120,6 @@
const char appsversion[]=APPSVERSION;
static void init(void);
-
-static void fourhertz_tick_task(void)
-{
- static long last_fire = 0;
- if (TIME_AFTER(current_tick, last_fire+HZ/4))
- {
- queue_post(&button_queue, SYS_FOURHERTZ, 0);
- last_fire = current_tick;
- }
-}
#ifdef SIMULATOR
void app_main(void)
@@ -148,7 +138,6 @@ static void app_main(void)
#ifdef HAVE_TOUCHSCREEN
touchscreen_set_mode(TOUCHSCREEN_BUTTON);
#endif
- tick_add_task(fourhertz_tick_task);
viewportmanager_set_statusbar(true);
add_event(GUI_EVENT_STATUSBAR_TOGGLE, false,
viewportmanager_statusbar_changed);