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.tar.gz
rockbox-e25463204e4a61afab85396ac7862a3199ef4ec5.zip
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 18758e3570..b42df0587a 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1374,6 +1374,8 @@ static bool dirbrowse(char *root, int *dirfilter)
1374 if (restore || reload_dir) { 1374 if (restore || reload_dir) {
1375 /* restore display */ 1375 /* restore display */
1376 1376
1377 tree_max_on_screen = recalc_screen_height();
1378
1377 /* We need to adjust if the number of lines on screen have 1379 /* We need to adjust if the number of lines on screen have
1378 changed because of a status bar change */ 1380 changed because of a status bar change */
1379 if(CURSOR_Y+LINE_Y+dircursor>tree_max_on_screen) { 1381 if(CURSOR_Y+LINE_Y+dircursor>tree_max_on_screen) {