mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 04:43:26 +00:00
GUI: Display the correct number of entries
This commit is contained in:
parent
af36819694
commit
a708bea52a
@ -347,7 +347,7 @@ bool GridWidget::calcVisibleEntries() {
|
||||
needsReload = true;
|
||||
_itemsOnScreen = nItemsOnScreen;
|
||||
|
||||
int toRender = MIN(_firstVisibleItem + _itemsOnScreen, (int)_allEntries.size()-1);
|
||||
int toRender = MIN(_firstVisibleItem + _itemsOnScreen, (int)_allEntries.size());
|
||||
|
||||
_visibleEntries.clear();
|
||||
for (int ind = _firstVisibleItem; ind < toRender; ++ind) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user