diff options
| author | Jonas Häggqvist <rasher@rasher.dk> | 2005-06-26 21:43:31 +0000 |
|---|---|---|
| committer | Jonas Häggqvist <rasher@rasher.dk> | 2005-06-26 21:43:31 +0000 |
| commit | ba5f9cf181ee90052dc59934fbc3c664e661b325 (patch) | |
| tree | a15b4e5c38ca87ff08eb4e53ad529dd6449443ca | |
| parent | 9e376a557dd3ad8a29879ac534b0569428b0c92a (diff) | |
| download | rockbox-ba5f9cf181ee90052dc59934fbc3c664e661b325.zip rockbox-ba5f9cf181ee90052dc59934fbc3c664e661b325.tar.gz rockbox-ba5f9cf181ee90052dc59934fbc3c664e661b325.tar.bz2 rockbox-ba5f9cf181ee90052dc59934fbc3c664e661b325.tar.xz | |
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
| -rw-r--r-- | apps/tree.c | 6 | ||||
| -rw-r--r-- | docs/CREDITS | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c index be4edf7..66a163a 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; diff --git a/docs/CREDITS b/docs/CREDITS index 93a2533..5d3c845 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -120,3 +120,4 @@ Pedro Baltazar Vasconcelos Ray Lambert Dave Wiard Pieter Bos +Konstantin Isakov |