diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/list.c | 46 | ||||
-rw-r--r-- | apps/gui/list.h | 1 |
2 files changed, 0 insertions, 47 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 107ce5a71a..41bde5802b 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -84,7 +84,6 @@ static void gui_list_init(struct gui_list * gui_list, | |||
84 | gui_list->start_item = 0; | 84 | gui_list->start_item = 0; |
85 | gui_list->limit_scroll = false; | 85 | gui_list->limit_scroll = false; |
86 | gui_list->data=data; | 86 | gui_list->data=data; |
87 | gui_list->cursor_flash_state=false; | ||
88 | #ifdef HAVE_LCD_BITMAP | 87 | #ifdef HAVE_LCD_BITMAP |
89 | gui_list->offset_position = 0; | 88 | gui_list->offset_position = 0; |
90 | #endif | 89 | #endif |
@@ -129,44 +128,6 @@ static void gui_list_set_display(struct gui_list * gui_list, struct screen * dis | |||
129 | gui_list_select_at_offset(gui_list, 0); | 128 | gui_list_select_at_offset(gui_list, 0); |
130 | } | 129 | } |
131 | 130 | ||
132 | /* | ||
133 | * One call on 2, the selected lune will either blink the cursor or | ||
134 | * invert/display normal the selected line | ||
135 | * - gui_list : the list structure | ||
136 | */ | ||
137 | static void gui_list_flash(struct gui_list * gui_list) | ||
138 | { | ||
139 | struct screen * display=gui_list->display; | ||
140 | gui_list->cursor_flash_state=!gui_list->cursor_flash_state; | ||
141 | int selected_line=gui_list->selected_item-gui_list->start_item+SHOW_LIST_TITLE; | ||
142 | #ifdef HAVE_LCD_BITMAP | ||
143 | int line_ypos=display->getymargin()+display->char_height*selected_line; | ||
144 | if (global_settings.cursor_style) | ||
145 | { | ||
146 | int line_xpos=display->getxmargin(); | ||
147 | display->set_drawmode(DRMODE_COMPLEMENT); | ||
148 | display->fillrect(line_xpos, line_ypos, display->width, | ||
149 | display->char_height); | ||
150 | display->set_drawmode(DRMODE_SOLID); | ||
151 | display->invertscroll(0, selected_line); | ||
152 | } | ||
153 | else | ||
154 | { | ||
155 | int cursor_xpos=(global_settings.scrollbar && | ||
156 | display->nb_lines < gui_list->nb_items)?1:0; | ||
157 | screen_put_cursorxy(display, cursor_xpos, selected_line, | ||
158 | gui_list->cursor_flash_state); | ||
159 | } | ||
160 | display->update_rect(0, line_ypos,display->width, | ||
161 | display->char_height); | ||
162 | #else | ||
163 | screen_put_cursorxy(display, 0, selected_line, | ||
164 | gui_list->cursor_flash_state); | ||
165 | gui_textarea_update(display); | ||
166 | #endif | ||
167 | } | ||
168 | |||
169 | |||
170 | #ifdef HAVE_LCD_BITMAP | 131 | #ifdef HAVE_LCD_BITMAP |
171 | static int gui_list_get_item_offset(struct gui_list * gui_list, int item_width, | 132 | static int gui_list_get_item_offset(struct gui_list * gui_list, int item_width, |
172 | int text_pos) | 133 | int text_pos) |
@@ -886,13 +847,6 @@ void gui_synclist_set_title(struct gui_synclist * lists, | |||
886 | gui_list_set_title(&(lists->gui_list[i]), title, icon); | 847 | gui_list_set_title(&(lists->gui_list[i]), title, icon); |
887 | } | 848 | } |
888 | 849 | ||
889 | void gui_synclist_flash(struct gui_synclist * lists) | ||
890 | { | ||
891 | int i; | ||
892 | FOR_NB_SCREENS(i) | ||
893 | gui_list_flash(&(lists->gui_list[i])); | ||
894 | } | ||
895 | |||
896 | #ifdef HAVE_LCD_BITMAP | 850 | #ifdef HAVE_LCD_BITMAP |
897 | static void gui_synclist_scroll_right(struct gui_synclist * lists) | 851 | static void gui_synclist_scroll_right(struct gui_synclist * lists) |
898 | { | 852 | { |
diff --git a/apps/gui/list.h b/apps/gui/list.h index 1046492b0d..9aaa18ed08 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h | |||
@@ -82,7 +82,6 @@ struct gui_list | |||
82 | /* wether the text of the whole items of the list have to be | 82 | /* wether the text of the whole items of the list have to be |
83 | * scrolled or only for the selected item */ | 83 | * scrolled or only for the selected item */ |
84 | bool scroll_all; | 84 | bool scroll_all; |
85 | bool cursor_flash_state; | ||
86 | 85 | ||
87 | int nb_items; | 86 | int nb_items; |
88 | int selected_item; | 87 | int selected_item; |