summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/bitmap/list.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index c474c329ff..94870538d6 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -66,6 +66,7 @@ static bool draw_title(struct screen *display, struct gui_synclist *list)
66{ 66{
67 const int screen = display->screen_type; 67 const int screen = display->screen_type;
68 int style = STYLE_DEFAULT; 68 int style = STYLE_DEFAULT;
69 display->scroll_stop(&title_text[screen]);
69 if (!list_display_title(list, screen)) 70 if (!list_display_title(list, screen))
70 return false; 71 return false;
71 title_text[screen] = *(list->parent[screen]); 72 title_text[screen] = *(list->parent[screen]);
@@ -104,9 +105,6 @@ void list_draw(struct screen *display, struct gui_synclist *list)
104 const bool show_cursor = !global_settings.cursor_style && 105 const bool show_cursor = !global_settings.cursor_style &&
105 list->show_selection_marker; 106 list->show_selection_marker;
106 struct viewport *parent = (list->parent[screen]); 107 struct viewport *parent = (list->parent[screen]);
107 /* the below returns a pointer to a viewport array which is
108 * NB_SCREENS long */
109 struct viewport *ui_vp = viewport_get_current_vp();
110#ifdef HAVE_LCD_COLOR 108#ifdef HAVE_LCD_COLOR
111 unsigned char cur_line = 0; 109 unsigned char cur_line = 0;
112#endif 110#endif
@@ -115,7 +113,7 @@ void list_draw(struct screen *display, struct gui_synclist *list)
115 line_height = font_get(parent->font)->height; 113 line_height = font_get(parent->font)->height;
116 display->set_viewport(parent); 114 display->set_viewport(parent);
117 display->clear_viewport(); 115 display->clear_viewport();
118 display->scroll_stop(&ui_vp[screen]); 116 display->scroll_stop(&list_text[screen]);
119 list_text[screen] = *parent; 117 list_text[screen] = *parent;
120 if ((show_title = draw_title(display, list))) 118 if ((show_title = draw_title(display, list)))
121 { 119 {