From 5d7e15324b792d4033ac49bda4f5ee244d71d7cb Mon Sep 17 00:00:00 2001 From: "roman.artiukhin" Date: Fri, 28 Oct 2022 13:28:51 +0300 Subject: [PATCH] Fix tree scrolling not showing end of text Fixes FS#13243 Change-Id: Icc9fa1e92ca5c928f90ba1a8291bdf37a6fe7898 --- apps/gui/bitmap/list.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index ca58d713d0..1c9b73a5fe 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c @@ -326,7 +326,6 @@ void list_draw(struct screen *display, struct gui_synclist *list) unsigned const char *s; char entry_buffer[MAX_PATH]; unsigned char *entry_name; - const int text_pos = 0; /* UNUSED */ int line = i - start; int line_indent = 0; int style = STYLE_DEFAULT; @@ -352,7 +351,7 @@ void list_draw(struct screen *display, struct gui_synclist *list) /* position the string at the correct offset place */ int item_width,h; display->getstringsize(entry_name, &item_width, &h); - item_offset = gui_list_get_item_offset(list, item_width, text_pos, + item_offset = gui_list_get_item_offset(list, item_width, indent + (list->show_icons ? icon_w : 0), display, list_text_vp); /* draw the selected line */