summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStéphane Doyon <s.doyon@videotron.ca>2008-08-19 03:51:33 +0000
committerStéphane Doyon <s.doyon@videotron.ca>2008-08-19 03:51:33 +0000
commit209245605b082e83a86c9c376561650671a60e43 (patch)
tree7f890bea340b266633645f0812a7c3b2d4ff909f
parent78cf5cc1dd22a26c70cfbf26d16160af0aa8a1e7 (diff)
downloadrockbox-209245605b082e83a86c9c376561650671a60e43.tar.gz
rockbox-209245605b082e83a86c9c376561650671a60e43.zip
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
-rw-r--r--apps/menus/main_menu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c
index 72fa7da1df..8b38f061ab 100644
--- a/apps/menus/main_menu.c
+++ b/apps/menus/main_menu.c
@@ -418,8 +418,11 @@ static int info_action_callback(int action, struct gui_synclist *lists)
418#if CONFIG_RTC 418#if CONFIG_RTC
419 else if (action == ACTION_NONE) 419 else if (action == ACTION_NONE)
420 { 420 {
421 if (gui_synclist_item_is_onscreen(lists, 0, INFO_TIME)) 421 static int last_redraw = 0;
422 if (gui_synclist_item_is_onscreen(lists, 0, INFO_TIME)
423 && TIME_AFTER(current_tick, last_redraw + HZ*5))
422 { 424 {
425 last_redraw = current_tick;
423 return ACTION_REDRAW; 426 return ACTION_REDRAW;
424 } 427 }
425 } 428 }