From cf6fec78dcd637c70e0d3fdaf2e886bd00d85444 Mon Sep 17 00:00:00 2001 From: Dave Allie Date: Sat, 20 Dec 2025 00:33:55 +1100 Subject: [PATCH] Cleanup indexing layout string --- src/activities/reader/EpubReaderActivity.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/activities/reader/EpubReaderActivity.cpp b/src/activities/reader/EpubReaderActivity.cpp index dd6dd04..fc4504d 100644 --- a/src/activities/reader/EpubReaderActivity.cpp +++ b/src/activities/reader/EpubReaderActivity.cpp @@ -214,12 +214,11 @@ void EpubReaderActivity::renderScreen() { { const int textWidth = renderer.getTextWidth(READER_FONT_ID, "Indexing..."); constexpr int margin = 20; - // Round all coordinates to 8 pixel boundaries - const int x = ((GfxRenderer::getScreenWidth() - textWidth - margin * 2) / 2 + 7) / 8 * 8; - constexpr int y = 56; - const int w = (textWidth + margin * 2 + 7) / 8 * 8; - const int h = (renderer.getLineHeight(READER_FONT_ID) + margin * 2 + 7) / 8 * 8; - renderer.clearScreen(); + const int x = (GfxRenderer::getScreenWidth() - textWidth - margin * 2) / 2; + constexpr int y = 50; + const int w = textWidth + margin * 2; + const int h = renderer.getLineHeight(READER_FONT_ID) + margin * 2; + renderer.fillRect(x, y, w, h, false); renderer.drawText(READER_FONT_ID, x + margin, y + margin, "Indexing..."); renderer.drawRect(x + 5, y + 5, w - 10, h - 10); renderer.displayBuffer();