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
This commit is contained in:
parent
0028b05f3e
commit
1d66826ad8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue