commit 405f4d07a296924fdd89c809dba6ce1c6bc268b4
parent 81845436497cd8d74e6339e970ef9555bc93c9e6
Author: Matt Demanett <matt@demanett.net>
Date: Sun, 23 Aug 2020 07:19:20 -0400
Maybe fix situation where the right-channel VU on MIX2 spuriously shows red.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/widgets.cpp b/src/widgets.cpp
@@ -575,7 +575,7 @@ void VUSlider::draw(const DrawArgs& args) {
nvgFillColor(args.vg, decibelsToColor(amplitudeToDecibels(db)));
nvgFill(args.vg);
}
- if (stereo) {
+ if (stereo && stereoDb > 0.0f) {
nvgBeginPath(args.vg);
nvgRoundedRect(args.vg, 9, 4, 7, 5, 1.0);
nvgFillColor(args.vg, decibelsToColor(amplitudeToDecibels(stereoDb)));