forked from len0rd/rockbox
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
This commit is contained in:
parent
e74cc6d9da
commit
8b9fdb540c
11 changed files with 28 additions and 38 deletions
11
apps/main.c
11
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue