diff options
author | Damien Zammit <damien@zamaudio.com> | 2016-07-05 18:36:04 +1000 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2016-07-05 18:36:04 +1000 |
commit | a16c0c445a71a56bd63ec59b2d7447df83c6c332 (patch) | |
tree | e8ce3b089256af09b9473bd0be64192ec77f1b4d /libs/plugins/a-comp.lv2/a-comp.c | |
parent | 2a7bd996cde8d89fb170886794e5ceea30e5ac92 (diff) |
a-comp: Use input signal x as cutoff for inline comp curve
Diffstat (limited to 'libs/plugins/a-comp.lv2/a-comp.c')
-rw-r--r-- | libs/plugins/a-comp.lv2/a-comp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/plugins/a-comp.lv2/a-comp.c b/libs/plugins/a-comp.lv2/a-comp.c index 62d2a1d312..8a5fc536ec 100644 --- a/libs/plugins/a-comp.lv2/a-comp.c +++ b/libs/plugins/a-comp.lv2/a-comp.c @@ -626,7 +626,7 @@ render_inline (LV2_Handle instance, uint32_t w, uint32_t max_h) // maybe cut off at x-position? const float x = w * (self->v_lvl_in + 60) / 60.f; const float y = h * (self->v_lvl_out + 60) / 60.f; - cairo_rectangle (cr, 0, h - x, y, h); + cairo_rectangle (cr, 0, h - x, x, h); if (self->v_ratio > 1.0) { cairo_set_source (cr, pat); } else { |