| 117 | } |
| 118 | |
| 119 | void XtcReaderActivity::render(RenderLock&&) { |
| 120 | if (!xtc) { |
| 121 | return; |
| 122 | } |
| 123 | |
| 124 | // Bounds check |
| 125 | if (currentPage >= xtc->getPageCount()) { |
| 126 | // Show end of book screen |
| 127 | renderer.clearScreen(); |
| 128 | renderer.drawCenteredText(UI_12_FONT_ID, 300, tr(STR_END_OF_BOOK), true, EpdFontFamily::BOLD); |
| 129 | renderer.displayBuffer(); |
| 130 | return; |
| 131 | } |
| 132 | |
| 133 | renderPage(); |
| 134 | saveProgress(); |
| 135 | } |
| 136 | |
| 137 | XtcReaderActivity::StatusBarInfo XtcReaderActivity::getStatusBarInfo() const { |
| 138 | const int bookPageCount = static_cast<int>(xtc->getPageCount()); |
nothing calls this directly
no test coverage detected