forked from len0rd/rockbox
fix FS#8969 - rockbox info screen is now redrawn every half second
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17788 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ea7d0011bc
commit
b1dc552308
1 changed files with 10 additions and 1 deletions
|
|
@ -389,9 +389,10 @@ static int info_speak_item(int selected_item, void * data)
|
|||
|
||||
static int info_action_callback(int action, struct gui_synclist *lists)
|
||||
{
|
||||
static int last_redraw = 0;
|
||||
if (action == ACTION_STD_CANCEL)
|
||||
return action;
|
||||
if ((action == ACTION_STD_OK)
|
||||
else if ((action == ACTION_STD_OK)
|
||||
#ifdef HAVE_MULTIVOLUME
|
||||
|| action == SYS_HOTSWAP_INSERTED
|
||||
|| action == SYS_HOTSWAP_EXTRACTED
|
||||
|
|
@ -414,6 +415,14 @@ static int info_action_callback(int action, struct gui_synclist *lists)
|
|||
#endif
|
||||
return ACTION_REDRAW;
|
||||
}
|
||||
else if (action == ACTION_NONE)
|
||||
{
|
||||
if (TIME_AFTER(current_tick, last_redraw + HZ/2))
|
||||
{
|
||||
last_redraw = current_tick;
|
||||
return ACTION_REDRAW;
|
||||
}
|
||||
}
|
||||
return action;
|
||||
}
|
||||
static bool show_info(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue