summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index b42df05..9842450 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1374,7 +1374,9 @@ static bool dirbrowse(char *root, int *dirfilter)
if (restore || reload_dir) {
/* restore display */
+#ifdef HAVE_LCD_BITMAP
tree_max_on_screen = recalc_screen_height();
+#endif
/* We need to adjust if the number of lines on screen have
changed because of a status bar change */