fix: apply progress bar offset from top instead of bottom edge (#2250)
This commit is contained in:
@@ -763,7 +763,7 @@ void BaseTheme::drawStatusBar(GfxRenderer& renderer, const float bookProgress, c
|
|||||||
const int barMarginRight = fillMargin ? 0 : orientedMarginRight;
|
const int barMarginRight = fillMargin ? 0 : orientedMarginRight;
|
||||||
const int progressBarMaxWidth = renderer.getScreenWidth() - barMarginLeft - barMarginRight;
|
const int progressBarMaxWidth = renderer.getScreenWidth() - barMarginLeft - barMarginRight;
|
||||||
const int progressBarY = renderer.getScreenHeight() - orientedMarginBottom -
|
const int progressBarY = renderer.getScreenHeight() - orientedMarginBottom -
|
||||||
((SETTINGS.statusBarProgressBarThickness + 1) * 2) - paddingBottom;
|
((SETTINGS.statusBarProgressBarThickness + 1) * 2) - paddingBottom + (fillMargin ? 1 : 0);
|
||||||
size_t progress;
|
size_t progress;
|
||||||
if (SETTINGS.statusBarProgressBar == CrossPointSettings::STATUS_BAR_PROGRESS_BAR::BOOK_PROGRESS) {
|
if (SETTINGS.statusBarProgressBar == CrossPointSettings::STATUS_BAR_PROGRESS_BAR::BOOK_PROGRESS) {
|
||||||
progress = static_cast<size_t>(bookProgress);
|
progress = static_cast<size_t>(bookProgress);
|
||||||
|
|||||||
Reference in New Issue
Block a user