From 237d3c4c4b9d4ae1ee48ab812b83009761811604 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 19 Feb 2006 13:34:12 +0000 Subject: Adaptive button repeat: adapts repeat rate depending on the ability of the application to cope. Avoids afterscroll and similar effects. * Yield while scrolling through lists. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8738 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps') diff --git a/apps/gui/list.c b/apps/gui/list.c index b53009a976..472c01c92d 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -604,6 +604,7 @@ unsigned gui_synclist_do_button(struct gui_synclist * lists, unsigned button) #endif gui_synclist_select_previous(lists); gui_synclist_draw(lists); + yield(); return LIST_PREV; case LIST_NEXT: @@ -619,6 +620,7 @@ unsigned gui_synclist_do_button(struct gui_synclist * lists, unsigned button) #endif gui_synclist_select_next(lists); gui_synclist_draw(lists); + yield(); return LIST_NEXT; #ifdef LIST_PGRIGHT -- cgit v1.2.3