summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-03-17 07:43:19 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-03-17 07:43:19 +0000
commite25463204e4a61afab85396ac7862a3199ef4ec5 (patch)
treeedc6a9a0d0012f9a41f73568f9e298bd2d5cf51b
parent34ce49395997aafb81294d77c61fba192fd40ef1 (diff)
downloadrockbox-e25463204e4a61afab85396ac7862a3199ef4ec5.zip
rockbox-e25463204e4a61afab85396ac7862a3199ef4ec5.tar.gz
rockbox-e25463204e4a61afab85396ac7862a3199ef4ec5.tar.bz2
rockbox-e25463204e4a61afab85396ac7862a3199ef4ec5.tar.xz
The tree view is now correctly restored after a button bar change
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4393 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 18758e3..b42df05 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1374,6 +1374,8 @@ static bool dirbrowse(char *root, int *dirfilter)
if (restore || reload_dir) {
/* restore display */
+ tree_max_on_screen = recalc_screen_height();
+
/* We need to adjust if the number of lines on screen have
changed because of a status bar change */
if(CURSOR_Y+LINE_Y+dircursor>tree_max_on_screen) {