mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-05 23:27:38 +03:00
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:
parent
91d73c939c
commit
ad7814137c
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user