From 8a393885ea6780e8310862509184c132d4f523c4 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 25 Jun 2008 10:58:48 +0000 Subject: fix red git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17791 a1c6a512-1295-4272-9138-f99709370657 --- apps/menus/main_menu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/menus/main_menu.c') diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index b438b66893..ecd4c62d8a 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c @@ -389,7 +389,6 @@ 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; else if ((action == ACTION_STD_OK) @@ -415,14 +414,17 @@ static int info_action_callback(int action, struct gui_synclist *lists) #endif return ACTION_REDRAW; } +#if CONFIG_RTC else if (action == ACTION_NONE && lists->selected_item == INFO_TIME) { + static int last_redraw = 0; if (TIME_AFTER(current_tick, last_redraw + HZ/2)) { last_redraw = current_tick; return ACTION_REDRAW; } } +#endif return action; } static bool show_info(void) -- cgit v1.2.3