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