feat(color): mix/output bars show '0%' (#2592)

Resolves #2575
This commit is contained in:
Peter Feerick
2022-10-17 22:12:35 +10:00
committed by GitHub
parent 4c1cebe0f7
commit c8d6a50685
+2 -2
View File
@@ -43,7 +43,7 @@ void MixerChannelBar::paint(BitmapBuffer * dc)
limit<int>(-VIEW_CHANNELS_LIMIT_PCT, chanVal, VIEW_CHANNELS_LIMIT_PCT);
// Draw mixer bar
if (chanVal > 0) {
if (chanVal >= 0) {
dc->drawSolidFilledRect(
0 + width() / 2, 0,
divRoundClosest(chanVal * width(), VIEW_CHANNELS_LIMIT_PCT * 2),
@@ -108,7 +108,7 @@ void OutputChannelBar::paint(BitmapBuffer* dc)
limit<int>(-VIEW_CHANNELS_LIMIT_PCT, chanVal, VIEW_CHANNELS_LIMIT_PCT);
// Draw output bar
if (chanVal > 0) {
if (chanVal >= 0) {
dc->drawSolidFilledRect(
width() / 2, 0,
divRoundClosest(chanVal * width(), VIEW_CHANNELS_LIMIT_PCT * 2),