summaryrefslogtreecommitdiff
path: root/apps/gui/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r--apps/gui/list.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 0c05e01785..a3b822503b 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -155,7 +155,6 @@ void gui_synclist_init(struct gui_synclist * gui_list,
155 FOR_NB_SCREENS(i) 155 FOR_NB_SCREENS(i)
156 { 156 {
157 gui_list->start_item[i] = 0; 157 gui_list->start_item[i] = 0;
158 gui_list->last_displayed_start_item[i] = -1 ;
159#ifdef HAVE_LCD_BITMAP 158#ifdef HAVE_LCD_BITMAP
160 gui_list->offset_position[i] = 0; 159 gui_list->offset_position[i] = 0;
161#endif 160#endif
@@ -170,12 +169,10 @@ void gui_synclist_init(struct gui_synclist * gui_list,
170 gui_list->scroll_all = scroll_all; 169 gui_list->scroll_all = scroll_all;
171 gui_list->selected_size = selected_size; 170 gui_list->selected_size = selected_size;
172 gui_list->title = NULL; 171 gui_list->title = NULL;
173 gui_list->title_width = 0;
174 gui_list->title_icon = Icon_NOICON; 172 gui_list->title_icon = Icon_NOICON;
175 173
176 gui_list->scheduled_talk_tick = gui_list->last_talked_tick = 0; 174 gui_list->scheduled_talk_tick = gui_list->last_talked_tick = 0;
177 gui_list->show_selection_marker = true; 175 gui_list->show_selection_marker = true;
178 gui_list->last_displayed_selected_item = -1;
179 176
180#ifdef HAVE_LCD_COLOR 177#ifdef HAVE_LCD_COLOR
181 gui_list->title_color = -1; 178 gui_list->title_color = -1;
@@ -402,20 +399,6 @@ void gui_synclist_set_title(struct gui_synclist * gui_list,
402{ 399{
403 gui_list->title = title; 400 gui_list->title = title;
404 gui_list->title_icon = icon; 401 gui_list->title_icon = icon;
405 if (title)
406 {
407#ifdef HAVE_LCD_BITMAP
408 int i;
409 FOR_NB_SCREENS(i)
410 screens[i].getstringsize(title, &gui_list->title_width, NULL);
411#else
412 gui_list->title_width = strlen(title);
413#endif
414 }
415 else
416 {
417 gui_list->title_width = 0;
418 }
419} 402}
420 403
421void gui_synclist_set_nb_items(struct gui_synclist * lists, int nb_items) 404void gui_synclist_set_nb_items(struct gui_synclist * lists, int nb_items)