diff options
author | Johannes Mueller <github@johannes-mueller.org> | 2017-08-04 15:03:50 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-06-20 21:06:16 +0200 |
commit | c9bbb01d981c5c71589023d608ac01ca9789c8dc (patch) | |
tree | 71366c1a7e9dfe52de2dea3db549a238682e9677 /libs/plugins | |
parent | ef978d1b350e4ccc7cb9b00a501a1793298482ed (diff) |
Show the input level in acomp's inline display rather than output level
Diffstat (limited to 'libs/plugins')
-rw-r--r-- | libs/plugins/a-comp.lv2/a-comp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/plugins/a-comp.lv2/a-comp.c b/libs/plugins/a-comp.lv2/a-comp.c index a104022c0d..76618605d6 100644 --- a/libs/plugins/a-comp.lv2/a-comp.c +++ b/libs/plugins/a-comp.lv2/a-comp.c @@ -797,15 +797,15 @@ render_inline_only_bars (cairo_t* cr, const AComp* self) cairo_rectangle (cr, x1+wd-w_gr, y2, w_gr, ht); cairo_fill (cr); - if (self->v_lvl_out > -60.f) { - if (self->v_lvl_out > 10.f) { + if (self->v_lvl_in > -60.f) { + if (self->v_lvl_out > 6.f) { cairo_set_source_rgba (cr, 0.75, 0.0, 0.0, 1.0); } else if (self->v_lvl_out > 0.f) { cairo_set_source_rgba (cr, 0.66, 0.66, 0.0, 1.0); } else { cairo_set_source_rgba (cr, 0.0, 0.66, 0.0, 1.0); } - const float w_g = (self->v_lvl_out > 10.f) ? wd : wd * (60.f+self->v_lvl_out) / 70.f; + const float w_g = (self->v_lvl_in > 10.f) ? wd : wd * (60.f+self->v_lvl_in) / 70.f; cairo_rectangle (cr, x1, y1, w_g, ht); cairo_fill (cr); } |