FS#10722: some improvements for gui/list.c
commit220b6fe639552ec090afede86647b1166296c699
authorteru <teru@a1c6a512-1295-4272-9138-f99709370657>
Tue, 27 Oct 2009 13:18:54 +0000 (27 13:18 +0000)
committerteru <teru@a1c6a512-1295-4272-9138-f99709370657>
Tue, 27 Oct 2009 13:18:54 +0000 (27 13:18 +0000)
tree2e605bd786fdb84084fee8ae3194c86b2fb9374b
parent452dba8bdd6f4f742df587c6c3e101f4ed075587
FS#10722: some improvements for gui/list.c
* Add function list_get_nb_lines and replace duplicated codes to calculate number of lines by it.
* Refine calculation of start_item in function gui_list_put_selection_on_screen.
- displays as many items as possible. hopefully fix FS#10054.
* Fix checking bounds in function gui_synclist_item_is_onscreen.
* Remove trailing spaces and fix indents.

Flyspray: FS#10722
Author: myself

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23367 a1c6a512-1295-4272-9138-f99709370657
apps/gui/list.c