Commit 607a3f0
committed
Fix DisplayProgressBar min_value offset in fill calculation
DisplayProgressBar calculated bar_filled_width/height from the raw
value rather than the value's offset from min_value. When min_value
was 0 (the default), this had no effect — which is why the bug went
unnoticed — but any bar with a non-zero minimum rendered the fill
incorrectly.
DisplayRadialProgressBar already uses the correct form
(value - min_value) / (max_value - min_value).
Fixes #9541 parent 396bdb6 commit 607a3f0
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| |||
0 commit comments