Commit de42e1b
committed
Fix DisplayProgressBar horizontal bar filling wrong side
The refactor in db59686 ("refactor code, inverse now a graph setting")
introduced shared x1/y1/x2/y2 defaults and assigned the wrong coordinate
in the horizontal non-reverse branch: x1 was set to bar_filled_width
instead of x2, which caused the bar to render the empty portion in
BAR_COLOR and the filled portion in BACKGROUND_COLOR.
Pre-refactor code drew [0, 0, bar_filled_width, height - 1] — i.e. x2
was the variable, not x1. Restoring that behavior fixes the inversion
while leaving the reverse_direction and vertical branches unchanged
(those were already correct after the refactor).
Fixes #9821 parent fcf0b38 commit de42e1b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
| 381 | + | |
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| |||
0 commit comments