diff options
Diffstat (limited to 'apps/gui/bitmap/list.c')
-rw-r--r-- | apps/gui/bitmap/list.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 71c74dbd09..743ab813af 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c | |||
@@ -94,7 +94,7 @@ static bool draw_title(struct screen *display, struct gui_synclist *list) | |||
94 | display->puts_scroll_style(0, 0, list->title, style); | 94 | display->puts_scroll_style(0, 0, list->title, style); |
95 | return true; | 95 | return true; |
96 | } | 96 | } |
97 | 97 | ||
98 | void list_draw(struct screen *display, struct gui_synclist *list) | 98 | void list_draw(struct screen *display, struct gui_synclist *list) |
99 | { | 99 | { |
100 | struct viewport list_icons; | 100 | struct viewport list_icons; |
@@ -298,6 +298,8 @@ static int gui_synclist_touchscreen_scrollbar(struct gui_synclist * gui_list, | |||
298 | int nb_lines = viewport_get_nb_lines(&list_text[screen]); | 298 | int nb_lines = viewport_get_nb_lines(&list_text[screen]); |
299 | if (nb_lines < gui_list->nb_items) | 299 | if (nb_lines < gui_list->nb_items) |
300 | { | 300 | { |
301 | scrolling = true; | ||
302 | |||
301 | int scrollbar_size = nb_lines* | 303 | int scrollbar_size = nb_lines* |
302 | font_get(gui_list->parent[screen]->font)->height; | 304 | font_get(gui_list->parent[screen]->font)->height; |
303 | int actual_y = y - list_text[screen].y; | 305 | int actual_y = y - list_text[screen].y; |