From 209245605b082e83a86c9c376561650671a60e43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Doyon?= Date: Tue, 19 Aug 2008 03:51:33 +0000 Subject: [PATCH] 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 --- apps/menus/main_menu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) #if CONFIG_RTC 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; } }