forked from len0rd/rockbox
remove unused fields from struct gui_synclist.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24807 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2ec0312353
commit
dafcd1470a
3 changed files with 0 additions and 27 deletions
|
@ -65,10 +65,6 @@ void list_draw(struct screen *display, struct gui_synclist *gui_list)
|
||||||
display->clear_display();
|
display->clear_display();
|
||||||
start = 0;
|
start = 0;
|
||||||
end = display->getnblines();
|
end = display->getnblines();
|
||||||
gui_list->last_displayed_start_item[display->screen_type] =
|
|
||||||
gui_list->start_item[display->screen_type];
|
|
||||||
|
|
||||||
gui_list->last_displayed_selected_item = gui_list->selected_item;
|
|
||||||
|
|
||||||
/* Adjust the position of icon, cursor, text for the list */
|
/* Adjust the position of icon, cursor, text for the list */
|
||||||
draw_cursor = true;
|
draw_cursor = true;
|
||||||
|
|
|
@ -155,7 +155,6 @@ void gui_synclist_init(struct gui_synclist * gui_list,
|
||||||
FOR_NB_SCREENS(i)
|
FOR_NB_SCREENS(i)
|
||||||
{
|
{
|
||||||
gui_list->start_item[i] = 0;
|
gui_list->start_item[i] = 0;
|
||||||
gui_list->last_displayed_start_item[i] = -1 ;
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
gui_list->offset_position[i] = 0;
|
gui_list->offset_position[i] = 0;
|
||||||
#endif
|
#endif
|
||||||
|
@ -170,12 +169,10 @@ void gui_synclist_init(struct gui_synclist * gui_list,
|
||||||
gui_list->scroll_all = scroll_all;
|
gui_list->scroll_all = scroll_all;
|
||||||
gui_list->selected_size = selected_size;
|
gui_list->selected_size = selected_size;
|
||||||
gui_list->title = NULL;
|
gui_list->title = NULL;
|
||||||
gui_list->title_width = 0;
|
|
||||||
gui_list->title_icon = Icon_NOICON;
|
gui_list->title_icon = Icon_NOICON;
|
||||||
|
|
||||||
gui_list->scheduled_talk_tick = gui_list->last_talked_tick = 0;
|
gui_list->scheduled_talk_tick = gui_list->last_talked_tick = 0;
|
||||||
gui_list->show_selection_marker = true;
|
gui_list->show_selection_marker = true;
|
||||||
gui_list->last_displayed_selected_item = -1;
|
|
||||||
|
|
||||||
#ifdef HAVE_LCD_COLOR
|
#ifdef HAVE_LCD_COLOR
|
||||||
gui_list->title_color = -1;
|
gui_list->title_color = -1;
|
||||||
|
@ -402,20 +399,6 @@ void gui_synclist_set_title(struct gui_synclist * gui_list,
|
||||||
{
|
{
|
||||||
gui_list->title = title;
|
gui_list->title = title;
|
||||||
gui_list->title_icon = icon;
|
gui_list->title_icon = icon;
|
||||||
if (title)
|
|
||||||
{
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
|
||||||
int i;
|
|
||||||
FOR_NB_SCREENS(i)
|
|
||||||
screens[i].getstringsize(title, &gui_list->title_width, NULL);
|
|
||||||
#else
|
|
||||||
gui_list->title_width = strlen(title);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
gui_list->title_width = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void gui_synclist_set_nb_items(struct gui_synclist * lists, int nb_items)
|
void gui_synclist_set_nb_items(struct gui_synclist * lists, int nb_items)
|
||||||
|
|
|
@ -100,15 +100,9 @@ struct gui_synclist
|
||||||
int start_item[NB_SCREENS]; /* the item that is displayed at the top of the screen */
|
int start_item[NB_SCREENS]; /* the item that is displayed at the top of the screen */
|
||||||
/* the number of lines that are selected at the same time */
|
/* the number of lines that are selected at the same time */
|
||||||
int selected_size;
|
int selected_size;
|
||||||
/* These are used to calculate how much of the screen content we need
|
|
||||||
to redraw. */
|
|
||||||
int last_displayed_selected_item;
|
|
||||||
int last_displayed_start_item[NB_SCREENS];
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
int offset_position[NB_SCREENS]; /* the list's screen scroll placement in pixels */
|
int offset_position[NB_SCREENS]; /* the list's screen scroll placement in pixels */
|
||||||
#endif
|
#endif
|
||||||
/* Cache the width of the title string in pixels/characters */
|
|
||||||
int title_width;
|
|
||||||
long scheduled_talk_tick, last_talked_tick;
|
long scheduled_talk_tick, last_talked_tick;
|
||||||
|
|
||||||
list_get_icon *callback_get_item_icon;
|
list_get_icon *callback_get_item_icon;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue