[Scummvm-git-logs] scummvm master -> 1bee3bca11d85485328bc06723d1b91e0f674679

bluegr noreply at scummvm.org
Thu May 14 15:50:21 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
1bee3bca11 GUI: When filtering a list, make sure the result is in view (bug #16698)


Commit: 1bee3bca11d85485328bc06723d1b91e0f674679
    https://github.com/scummvm/scummvm/commit/1bee3bca11d85485328bc06723d1b91e0f674679
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2026-05-14T18:50:15+03:00

Commit Message:
GUI: When filtering a list, make sure the result is in view (bug #16698)

This may be a regression from the recent scroll changes.

Changed paths:
    gui/widgets/groupedlist.cpp
    gui/widgets/list.cpp


diff --git a/gui/widgets/groupedlist.cpp b/gui/widgets/groupedlist.cpp
index 28147a65546..7f1c2c4b3e8 100644
--- a/gui/widgets/groupedlist.cpp
+++ b/gui/widgets/groupedlist.cpp
@@ -572,6 +572,7 @@ void GroupedListWidget::setFilter(const Common::U32String &filter, bool redraw)
 	}
 
 	_currentPos = 0;
+	_scrollPos = 0.0f;
 	_selectedItem = -1;
 	// Try to preserve the previous selection
 	if (selectedItem != -1)
diff --git a/gui/widgets/list.cpp b/gui/widgets/list.cpp
index 7a3559c4498..ffb5a116e99 100644
--- a/gui/widgets/list.cpp
+++ b/gui/widgets/list.cpp
@@ -1126,6 +1126,7 @@ void ListWidget::setFilter(const Common::U32String &filter, bool redraw) {
 	}
 
 	_currentPos = 0;
+	_scrollPos = 0.0f;
 	_selectedItem = -1;
 
 	if (redraw) {




More information about the Scummvm-git-logs mailing list