diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-02-19 13:34:12 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-02-19 13:34:12 +0000 |
commit | 237d3c4c4b9d4ae1ee48ab812b83009761811604 (patch) | |
tree | 0222738324467191968fe1d3ee81d7130c390a6c /apps | |
parent | 1b45b130dcee36b1f9f7965fd0b062789bb99bc0 (diff) | |
download | rockbox-237d3c4c4b9d4ae1ee48ab812b83009761811604.tar.gz rockbox-237d3c4c4b9d4ae1ee48ab812b83009761811604.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/list.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
604 | #endif | 604 | #endif |
605 | gui_synclist_select_previous(lists); | 605 | gui_synclist_select_previous(lists); |
606 | gui_synclist_draw(lists); | 606 | gui_synclist_draw(lists); |
607 | yield(); | ||
607 | return LIST_PREV; | 608 | return LIST_PREV; |
608 | 609 | ||
609 | case LIST_NEXT: | 610 | case LIST_NEXT: |
@@ -619,6 +620,7 @@ unsigned gui_synclist_do_button(struct gui_synclist * lists, unsigned button) | |||
619 | #endif | 620 | #endif |
620 | gui_synclist_select_next(lists); | 621 | gui_synclist_select_next(lists); |
621 | gui_synclist_draw(lists); | 622 | gui_synclist_draw(lists); |
623 | yield(); | ||
622 | return LIST_NEXT; | 624 | return LIST_NEXT; |
623 | 625 | ||
624 | #ifdef LIST_PGRIGHT | 626 | #ifdef LIST_PGRIGHT |