Skip to content

Commit

Permalink
Fixed progress bar vertical rendition.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Sep 12, 2023
1 parent c054c4c commit 9e0b695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/planet096_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,16 +408,16 @@ void Planet096Scene::renderProgressBarWidget(Planet096ProgressBar* progressBarUI
switch(direction) {
case PLANET096_PROGRESS_BAR_BOTTOM_TOP:
this->display.fillRect(
x, y + (height - progress),
width, progress,
x, y + height - (progress - y),
width, progress - y,
PLANET096_WHITE
);
break;

default:
this->display.fillRect(
x, y,
width, progress,
width, progress - y,
PLANET096_WHITE
);
break;
Expand Down

0 comments on commit 9e0b695

Please sign in to comment.