This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10722 - some improvements for gui/list.c
Attached to Project:
Rockbox
Opened by Teruaki Kawashima (teru) - Sunday, 25 October 2009, 15:56 GMT+2
Last edited by Teruaki Kawashima (teru) - Tuesday, 27 October 2009, 14:35 GMT+2
Opened by Teruaki Kawashima (teru) - Sunday, 25 October 2009, 15:56 GMT+2
Last edited by Teruaki Kawashima (teru) - Tuesday, 27 October 2009, 14:35 GMT+2
|
Detailsthis patch is 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 gui_list->start_item[screen] in function gui_list_put_selection_on_screen. - tries to show as many items as possible. hopefully fix * remove trailing spaces and fix indents. |
This task depends upon
Closed by Teruaki Kawashima (teru)
Tuesday, 27 October 2009, 14:35 GMT+2
Reason for closing: Accepted
Additional comments about closing: committed in r23367
Tuesday, 27 October 2009, 14:35 GMT+2
Reason for closing: Accepted
Additional comments about closing: committed in r23367
I'll have a look if nobody beats me to it, but remember the above for future patches.
The patch looks very good. I assume it works, so go for it :)
On a unrelated note: gui_synclist_item_is_onscreen() seems to only check the lower bound of the visible list, not the upper. Is that correct? I don't think so. But that's not related to your patch.