1
0
Fork 0
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:
Jonathan Gordon 2008-06-25 07:46:18 +00:00
parent ea7d0011bc
commit b1dc552308

View file

@ -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)