Fix: Fixed font list in FontSelectionActivity

Fixed issue with the fonts list in the font selection menu; previously, only 8 fonts at a time could be displayed. TBD: Implementing scrolling if there are more fonts than screen real estate; the current function will continue rendering font names until it hits the bottom
This commit is contained in:
bean 2026-01-26 18:43:47 -05:00
parent 91d73c939c
commit ad7814137c

View File

@ -94,9 +94,8 @@ void FontSelectionActivity::render() const {
return;
}
for (int i = 0; i < itemsPerPage; i++) {
for (int i = 0; i < (int)fontFamilies.size(); i++) {
int idx = scrollOffset + i;
if (idx >= (int)fontFamilies.size()) break;
// Draw selection box
if (idx == selectedIndex) {