summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2024-12-17 01:07:26 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2024-12-17 23:51:21 -0500
commit12ea82d9e4a688720a1a7029962c6ed34792abf7 (patch)
treecf86fe09a30fde7a16167b60d28e87823ad15537
parentcf4bf5439e1bb2b1bc87cebc8b192718c27b638e (diff)
downloadrockbox-12ea82d9e4.tar.gz
rockbox-12ea82d9e4.zip
Allow scroll_all lists to resume scrolling lines
rather than reset the scrolling lines in list_draw() when scroll_all = true allow the scroller to take care of stopping lines after the offset is known this pretty much entirely the debug menus Change-Id: I7069e0634d32b5ad8f92c294c5caf85373a7d480
-rw-r--r--apps/gui/bitmap/list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index 740d78719a..61f097e93a 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -212,7 +212,8 @@ void list_draw(struct screen *display, struct gui_synclist *list)
struct viewport * last_vp = display->set_viewport(parent);
display->clear_viewport();
- display->scroll_stop_viewport(list_text_vp);
+ if (!list->scroll_all)
+ display->scroll_stop_viewport(list_text_vp);
*list_text_vp = *parent;
if ((show_title = draw_title(display, list, callback_draw_item)))
{