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.tar.gz
rockbox-8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c.zip
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 d473e66731..4e66a851f1 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -120,16 +120,6 @@
120const char appsversion[]=APPSVERSION; 120const char appsversion[]=APPSVERSION;
121 121
122static void init(void); 122static void init(void);
123
124static void fourhertz_tick_task(void)
125{
126 static long last_fire = 0;
127 if (TIME_AFTER(current_tick, last_fire+HZ/4))
128 {
129 queue_post(&button_queue, SYS_FOURHERTZ, 0);
130 last_fire = current_tick;
131 }
132}
133 123
134#ifdef SIMULATOR 124#ifdef SIMULATOR
135void app_main(void) 125void app_main(void)
@@ -148,7 +138,6 @@ static void app_main(void)
148#ifdef HAVE_TOUCHSCREEN 138#ifdef HAVE_TOUCHSCREEN
149 touchscreen_set_mode(TOUCHSCREEN_BUTTON); 139 touchscreen_set_mode(TOUCHSCREEN_BUTTON);
150#endif 140#endif
151 tick_add_task(fourhertz_tick_task);
152 viewportmanager_set_statusbar(true); 141 viewportmanager_set_statusbar(true);
153 add_event(GUI_EVENT_STATUSBAR_TOGGLE, false, 142 add_event(GUI_EVENT_STATUSBAR_TOGGLE, false,
154 viewportmanager_statusbar_changed); 143 viewportmanager_statusbar_changed);