From b1dc55230865cca9f1d37049fe9889e1626ab858 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 25 Jun 2008 07:46:18 +0000 Subject: 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 --- apps/menus/main_menu.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'apps/menus') diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index 62250a3c47..a8235dcc59 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c @@ -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) -- cgit v1.2.3