From 1d66826ad8f9ec0f691b6e2e503cf83a3933e567 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sat, 1 Jul 2006 10:31:50 +0000 Subject: 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 --- apps/tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') 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) tc.selected_item=tc.filesindir-1; gui_synclist_select_item(&tree_lists, tc.selected_item); - gui_synclist_draw(&tree_lists); - gui_syncstatusbar_draw(&statusbars, true); #ifdef HAS_BUTTONBAR if (global_settings.buttonbar) { if (*tc.dirfilter < NUM_FILTER_MODES) @@ -364,6 +362,8 @@ static int update_dir(void) gui_buttonbar_draw(&tree_buttonbar); } #endif + gui_synclist_draw(&tree_lists); + gui_syncstatusbar_draw(&statusbars, true); return tc.filesindir; } -- cgit v1.2.3