summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2005-06-26 21:43:31 +0000
committerJonas Häggqvist <rasher@rasher.dk>2005-06-26 21:43:31 +0000
commitba5f9cf181ee90052dc59934fbc3c664e661b325 (patch)
treea15b4e5c38ca87ff08eb4e53ad529dd6449443ca /apps
parent9e376a557dd3ad8a29879ac534b0569428b0c92a (diff)
downloadrockbox-ba5f9cf181ee90052dc59934fbc3c664e661b325.tar.gz
rockbox-ba5f9cf181ee90052dc59934fbc3c664e661b325.zip
Patch #1218188 by Konstantin Isakov: Don't wrap around scroll in file-browser when button is repeated.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6884 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index be4edf7065..66a163ab8e 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -896,6 +896,8 @@ static bool dirbrowse(void)
restore = true;
}
else {
+ if (button & BUTTON_REPEAT)
+ break;
if (numentries < tree_max_on_screen) {
put_cursorxy(CURSOR_X, CURSOR_Y + tc.dircursor,
false);
@@ -950,6 +952,8 @@ static bool dirbrowse(void)
else if (id3db && (tc.firstpos || tc.dirfull)) {
if (tc.dircursor + tc.dirstart + tc.firstpos + 1 >= tc.dirlength) {
/* wrap and load first dir segment */
+ if (button & BUTTON_REPEAT)
+ break;
tc.firstpos = tc.dirstart = tc.dircursor = 0;
}
else {
@@ -960,6 +964,8 @@ static bool dirbrowse(void)
restore = true;
}
else {
+ if (button & BUTTON_REPEAT)
+ break;
if(numentries < tree_max_on_screen) {
put_cursorxy(CURSOR_X, CURSOR_Y + tc.dircursor, false);
tc.dirstart = tc.dircursor = 0;