diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-06-25 10:58:48 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-06-25 10:58:48 +0000 |
commit | 8a393885ea6780e8310862509184c132d4f523c4 (patch) | |
tree | 65b1adca9510cabeb56b390726e25c6fa2238e3f /apps/menus/main_menu.c | |
parent | 46f38c5f4fb587fd922d629bd5077202e6106407 (diff) | |
download | rockbox-8a393885ea6780e8310862509184c132d4f523c4.tar.gz rockbox-8a393885ea6780e8310862509184c132d4f523c4.zip |
fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17791 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus/main_menu.c')
-rw-r--r-- | apps/menus/main_menu.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
389 | 389 | ||
390 | static int info_action_callback(int action, struct gui_synclist *lists) | 390 | static int info_action_callback(int action, struct gui_synclist *lists) |
391 | { | 391 | { |
392 | static int last_redraw = 0; | ||
393 | if (action == ACTION_STD_CANCEL) | 392 | if (action == ACTION_STD_CANCEL) |
394 | return action; | 393 | return action; |
395 | else if ((action == ACTION_STD_OK) | 394 | else if ((action == ACTION_STD_OK) |
@@ -415,14 +414,17 @@ static int info_action_callback(int action, struct gui_synclist *lists) | |||
415 | #endif | 414 | #endif |
416 | return ACTION_REDRAW; | 415 | return ACTION_REDRAW; |
417 | } | 416 | } |
417 | #if CONFIG_RTC | ||
418 | else if (action == ACTION_NONE && lists->selected_item == INFO_TIME) | 418 | else if (action == ACTION_NONE && lists->selected_item == INFO_TIME) |
419 | { | 419 | { |
420 | static int last_redraw = 0; | ||
420 | if (TIME_AFTER(current_tick, last_redraw + HZ/2)) | 421 | if (TIME_AFTER(current_tick, last_redraw + HZ/2)) |
421 | { | 422 | { |
422 | last_redraw = current_tick; | 423 | last_redraw = current_tick; |
423 | return ACTION_REDRAW; | 424 | return ACTION_REDRAW; |
424 | } | 425 | } |
425 | } | 426 | } |
427 | #endif | ||
426 | return action; | 428 | return action; |
427 | } | 429 | } |
428 | static bool show_info(void) | 430 | static bool show_info(void) |