summaryrefslogtreecommitdiff
path: root/apps/gui/bitmap
diff options
context:
space:
mode:
authorTomer Shalev <shalev.tomer@gmail.com>2009-10-05 23:08:52 +0000
committerTomer Shalev <shalev.tomer@gmail.com>2009-10-05 23:08:52 +0000
commitff3e3f597440bc7348bf0ee67c1c36fddfce2ae5 (patch)
tree89af7d2f89f2fc71ee6aacf6e8bcbb1f83a622a3 /apps/gui/bitmap
parent5da75070c1fa6c86f2872aa148c859a3f2cc63b6 (diff)
Remove redundant code in list.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22974 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/bitmap')
-rw-r--r--apps/gui/bitmap/list.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index 5183880aa8..c94b6037af 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -274,23 +274,17 @@ 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 &&
+ 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);
+ screen_put_icon(display, 0, i-start, Icon_Cursor);
}
}
display->set_viewport(parent);