From 8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 5 Jan 2009 09:59:11 +0000 Subject: 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 --- apps/main.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'apps/main.c') 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 @@ 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); -- cgit v1.2.3