diff options
author | roman.artiukhin <bahusdrive@gmail.com> | 2022-10-28 13:28:51 +0300 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2022-10-30 14:11:20 -0400 |
commit | 5d7e15324b792d4033ac49bda4f5ee244d71d7cb (patch) | |
tree | d3e68edd93a866838dcf4f96d34cc45862965213 | |
parent | 4193436000fb90fa93eec68a8c17824023cd939f (diff) | |
download | rockbox-5d7e15324b792d4033ac49bda4f5ee244d71d7cb.tar.gz rockbox-5d7e15324b792d4033ac49bda4f5ee244d71d7cb.zip |
Fix tree scrolling not showing end of text
Fixes FS#13243
Change-Id: Icc9fa1e92ca5c928f90ba1a8291bdf37a6fe7898
-rw-r--r-- | apps/gui/bitmap/list.c | 3 |
1 files changed, 1 insertions, 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) | |||
326 | unsigned const char *s; | 326 | unsigned const char *s; |
327 | char entry_buffer[MAX_PATH]; | 327 | char entry_buffer[MAX_PATH]; |
328 | unsigned char *entry_name; | 328 | unsigned char *entry_name; |
329 | const int text_pos = 0; /* UNUSED */ | ||
330 | int line = i - start; | 329 | int line = i - start; |
331 | int line_indent = 0; | 330 | int line_indent = 0; |
332 | int style = STYLE_DEFAULT; | 331 | int style = STYLE_DEFAULT; |
@@ -352,7 +351,7 @@ void list_draw(struct screen *display, struct gui_synclist *list) | |||
352 | /* position the string at the correct offset place */ | 351 | /* position the string at the correct offset place */ |
353 | int item_width,h; | 352 | int item_width,h; |
354 | display->getstringsize(entry_name, &item_width, &h); | 353 | display->getstringsize(entry_name, &item_width, &h); |
355 | item_offset = gui_list_get_item_offset(list, item_width, text_pos, | 354 | item_offset = gui_list_get_item_offset(list, item_width, indent + (list->show_icons ? icon_w : 0), |
356 | display, list_text_vp); | 355 | display, list_text_vp); |
357 | 356 | ||
358 | /* draw the selected line */ | 357 | /* draw the selected line */ |