summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-07-01 10:31:50 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-07-01 10:31:50 +0000
commit1d66826ad8f9ec0f691b6e2e503cf83a3933e567 (patch)
treeea13eaa1d5016931f4c5173a01ee3749d537481e /apps/tree.c
parent0028b05f3ec112c55d1706a94edd96911ef95449 (diff)
downloadrockbox-1d66826ad8f9ec0f691b6e2e503cf83a3933e567.tar.gz
rockbox-1d66826ad8f9ec0f691b6e2e503cf83a3933e567.zip
Correct calculation of number of lines in the textarea with the button bar enabled. Fixes a bug where the file browser screwed up when wrapping backwards.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10168 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 00ca7c8e19..80132449e9 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -351,8 +351,6 @@ static int update_dir(void)
351 tc.selected_item=tc.filesindir-1; 351 tc.selected_item=tc.filesindir-1;
352 352
353 gui_synclist_select_item(&tree_lists, tc.selected_item); 353 gui_synclist_select_item(&tree_lists, tc.selected_item);
354 gui_synclist_draw(&tree_lists);
355 gui_syncstatusbar_draw(&statusbars, true);
356#ifdef HAS_BUTTONBAR 354#ifdef HAS_BUTTONBAR
357 if (global_settings.buttonbar) { 355 if (global_settings.buttonbar) {
358 if (*tc.dirfilter < NUM_FILTER_MODES) 356 if (*tc.dirfilter < NUM_FILTER_MODES)
@@ -364,6 +362,8 @@ static int update_dir(void)
364 gui_buttonbar_draw(&tree_buttonbar); 362 gui_buttonbar_draw(&tree_buttonbar);
365 } 363 }
366#endif 364#endif
365 gui_synclist_draw(&tree_lists);
366 gui_syncstatusbar_draw(&statusbars, true);
367 return tc.filesindir; 367 return tc.filesindir;
368} 368}
369 369