summaryrefslogtreecommitdiff
path: root/apps/menus
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-06-25 07:46:18 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-06-25 07:46:18 +0000
commitb1dc55230865cca9f1d37049fe9889e1626ab858 (patch)
treeca682894ab3ace2718f90a9a72b5794a7fbe5c08 /apps/menus
parentea7d0011bc7597239258ec27b6ba1e5bad8229c2 (diff)
downloadrockbox-b1dc55230865cca9f1d37049fe9889e1626ab858.tar.gz
rockbox-b1dc55230865cca9f1d37049fe9889e1626ab858.zip
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
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/main_menu.c11
1 files changed, 10 insertions, 1 deletions
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)
389 389
390static int info_action_callback(int action, struct gui_synclist *lists) 390static int info_action_callback(int action, struct gui_synclist *lists)
391{ 391{
392 static int last_redraw = 0;
392 if (action == ACTION_STD_CANCEL) 393 if (action == ACTION_STD_CANCEL)
393 return action; 394 return action;
394 if ((action == ACTION_STD_OK) 395 else if ((action == ACTION_STD_OK)
395#ifdef HAVE_MULTIVOLUME 396#ifdef HAVE_MULTIVOLUME
396 || action == SYS_HOTSWAP_INSERTED 397 || action == SYS_HOTSWAP_INSERTED
397 || action == SYS_HOTSWAP_EXTRACTED 398 || action == SYS_HOTSWAP_EXTRACTED
@@ -414,6 +415,14 @@ static int info_action_callback(int action, struct gui_synclist *lists)
414#endif 415#endif
415 return ACTION_REDRAW; 416 return ACTION_REDRAW;
416 } 417 }
418 else if (action == ACTION_NONE)
419 {
420 if (TIME_AFTER(current_tick, last_redraw + HZ/2))
421 {
422 last_redraw = current_tick;
423 return ACTION_REDRAW;
424 }
425 }
417 return action; 426 return action;
418} 427}
419static bool show_info(void) 428static bool show_info(void)