From 2b6927f0834b5405735cdb567ecc5efc3744d30f Mon Sep 17 00:00:00 2001 From: Arthur Tazhitdinov Date: Tue, 3 Feb 2026 12:20:35 +0300 Subject: [PATCH] clang format fix --- src/activities/reader/EpubReaderActivity.cpp | 3 +-- src/activities/reader/EpubReaderPercentSelectionActivity.cpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/activities/reader/EpubReaderActivity.cpp b/src/activities/reader/EpubReaderActivity.cpp index 0fde714a..79e350bd 100644 --- a/src/activities/reader/EpubReaderActivity.cpp +++ b/src/activities/reader/EpubReaderActivity.cpp @@ -255,8 +255,7 @@ void EpubReaderActivity::jumpToPercent(int percent) { // Convert percent into a byte-like absolute position across the spine sizes. // Use an overflow-safe computation: (bookSize / 100) * percent + (bookSize % 100) * percent / 100 size_t targetSize = - (bookSize / 100) * static_cast(percent) + - (bookSize % 100) * static_cast(percent) / 100; + (bookSize / 100) * static_cast(percent) + (bookSize % 100) * static_cast(percent) / 100; if (percent >= 100) { // Ensure the final percent lands inside the last spine item. targetSize = bookSize - 1; diff --git a/src/activities/reader/EpubReaderPercentSelectionActivity.cpp b/src/activities/reader/EpubReaderPercentSelectionActivity.cpp index db67a956..ffc69e9f 100644 --- a/src/activities/reader/EpubReaderPercentSelectionActivity.cpp +++ b/src/activities/reader/EpubReaderPercentSelectionActivity.cpp @@ -106,14 +106,14 @@ void EpubReaderPercentSelectionActivity::renderScreen() { renderer.drawCenteredText(UI_12_FONT_ID, 15, "Go to Position", true, EpdFontFamily::BOLD); const std::string percentText = std::to_string(percent) + "%"; - renderer.drawCenteredText(UI_12_FONT_ID, 70, percentText.c_str(), true, EpdFontFamily::BOLD); + renderer.drawCenteredText(UI_12_FONT_ID, 90, percentText.c_str(), true, EpdFontFamily::BOLD); // Draw slider track. const int screenWidth = renderer.getScreenWidth(); constexpr int barWidth = 360; constexpr int barHeight = 16; const int barX = (screenWidth - barWidth) / 2; - const int barY = 120; + const int barY = 140; renderer.drawRect(barX, barY, barWidth, barHeight);