From 12ea82d9e4a688720a1a7029962c6ed34792abf7 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Tue, 17 Dec 2024 01:07:26 -0500 Subject: [PATCH] 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 --- apps/gui/bitmap/list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))) {