mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 23:57:39 +03:00
Remove comments per @osteotek suggestions
This commit is contained in:
parent
733fa1e274
commit
efe3e99f02
@ -188,8 +188,6 @@ void EpubReaderChapterSelectionActivity::renderScreen() {
|
|||||||
const auto pageStartIndex = selectorIndex / pageItems * pageItems;
|
const auto pageStartIndex = selectorIndex / pageItems * pageItems;
|
||||||
renderer.fillRect(0, 60 + (selectorIndex % pageItems) * 30 - 2, pageWidth - 1, 30);
|
renderer.fillRect(0, 60 + (selectorIndex % pageItems) * 30 - 2, pageWidth - 1, 30);
|
||||||
|
|
||||||
// for (int itemIndex = pageStartIndex; itemIndex < totalItems && itemIndex < pageStartIndex + pageItems; itemIndex++)
|
|
||||||
// {
|
|
||||||
for (int i = 0; i < pageItems; i++) {
|
for (int i = 0; i < pageItems; i++) {
|
||||||
int itemIndex = pageStartIndex + i;
|
int itemIndex = pageStartIndex + i;
|
||||||
if (itemIndex >= totalItems) break;
|
if (itemIndex >= totalItems) break;
|
||||||
@ -206,7 +204,6 @@ void EpubReaderChapterSelectionActivity::renderScreen() {
|
|||||||
const std::string chapterName =
|
const std::string chapterName =
|
||||||
renderer.truncatedText(UI_10_FONT_ID, item.title.c_str(), pageWidth - 40 - indentSize);
|
renderer.truncatedText(UI_10_FONT_ID, item.title.c_str(), pageWidth - 40 - indentSize);
|
||||||
|
|
||||||
// FIX: Use displayY here instead of recalculating based on tocIndex
|
|
||||||
renderer.drawText(UI_10_FONT_ID, indentSize, displayY, chapterName.c_str(), !isSelected);
|
renderer.drawText(UI_10_FONT_ID, indentSize, displayY, chapterName.c_str(), !isSelected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user