forked from len0rd/rockbox
Remove redundant code in list.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22974 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5da75070c1
commit
ff3e3f5974
1 changed files with 3 additions and 9 deletions
|
@ -274,25 +274,19 @@ void list_draw(struct screen *display, struct gui_synclist *list)
|
|||
style, item_offset);
|
||||
}
|
||||
/* do the icon */
|
||||
display->set_viewport(&list_icons);
|
||||
if (list->callback_get_item_icon && global_settings.show_icons)
|
||||
{
|
||||
display->set_viewport(&list_icons);
|
||||
screen_put_icon_with_offset(display, show_cursor?1:0,
|
||||
(i-start),show_cursor?ICON_PADDING:0,0,
|
||||
list->callback_get_item_icon(i, list->data));
|
||||
}
|
||||
if (show_cursor && i >= list->selected_item &&
|
||||
i < list->selected_item + list->selected_size)
|
||||
{
|
||||
screen_put_icon(display, 0, i-start, Icon_Cursor);
|
||||
}
|
||||
}
|
||||
else if (show_cursor && i >= list->selected_item &&
|
||||
i < list->selected_item + list->selected_size)
|
||||
{
|
||||
display->set_viewport(&list_icons);
|
||||
screen_put_icon(display, 0, (i-start), Icon_Cursor);
|
||||
}
|
||||
}
|
||||
display->set_viewport(parent);
|
||||
display->update_viewport();
|
||||
display->set_viewport(NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue