Rockbox info: restore the 5seconds update delay to allow scrolling,
which I broke in r18309. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18312 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
78cf5cc1dd
commit
209245605b
1 changed files with 4 additions and 1 deletions
|
@ -418,8 +418,11 @@ static int info_action_callback(int action, struct gui_synclist *lists)
|
||||||
#if CONFIG_RTC
|
#if CONFIG_RTC
|
||||||
else if (action == ACTION_NONE)
|
else if (action == ACTION_NONE)
|
||||||
{
|
{
|
||||||
if (gui_synclist_item_is_onscreen(lists, 0, INFO_TIME))
|
static int last_redraw = 0;
|
||||||
|
if (gui_synclist_item_is_onscreen(lists, 0, INFO_TIME)
|
||||||
|
&& TIME_AFTER(current_tick, last_redraw + HZ*5))
|
||||||
{
|
{
|
||||||
|
last_redraw = current_tick;
|
||||||
return ACTION_REDRAW;
|
return ACTION_REDRAW;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue