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
|
@ -211,8 +211,6 @@ long gui_wps_show(void)
|
|||
if (button != ACTION_NONE) {
|
||||
break;
|
||||
}
|
||||
else if (button == SYS_FOURHERTZ)
|
||||
default_event_handler(button);
|
||||
peak_meter_peek();
|
||||
sleep(0); /* Sleep until end of current tick. */
|
||||
|
||||
|
|
|
@ -643,9 +643,6 @@ bool gui_synclist_do_button(struct gui_synclist * lists,
|
|||
|
||||
switch (action)
|
||||
{
|
||||
case SYS_FOURHERTZ:
|
||||
default_event_handler(action);
|
||||
return true;
|
||||
case ACTION_REDRAW:
|
||||
gui_synclist_draw(lists);
|
||||
return true;
|
||||
|
|
|
@ -92,12 +92,12 @@ bool viewportmanager_set_statusbar(bool enabled)
|
|||
bool old = statusbar_enabled;
|
||||
if (enabled && global_settings.statusbar)
|
||||
{
|
||||
add_event(GUI_EVENT_FOURHERTZ, false, viewportmanager_draw_statusbars);
|
||||
add_event(GUI_EVENT_ACTIONUPDATE, false, viewportmanager_draw_statusbars);
|
||||
gui_syncstatusbar_draw(&statusbars, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
remove_event(GUI_EVENT_FOURHERTZ, viewportmanager_draw_statusbars);
|
||||
remove_event(GUI_EVENT_ACTIONUPDATE, viewportmanager_draw_statusbars);
|
||||
}
|
||||
statusbar_enabled = enabled;
|
||||
return old;
|
||||
|
|
|
@ -167,9 +167,6 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message,
|
|||
case SYS_CHARGER_DISCONNECTED:
|
||||
/* ignore some SYS events that can happen */
|
||||
continue;
|
||||
case SYS_FOURHERTZ: /* make sure this one works as expected */
|
||||
default_event_handler(button);
|
||||
break;
|
||||
default:
|
||||
if(default_event_handler(button) == SYS_USB_CONNECTED)
|
||||
return(YESNO_USB);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue