Compare commits

...

2 Commits

Author SHA1 Message Date
Ruby
1c63440a27
Merge ad7814137c into 3ce11f14ce 2026-01-26 23:44:04 +00:00
bean
ad7814137c 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
2026-01-26 18:43:47 -05:00

View File

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