diff --git a/libs/plugins/a-comp.lv2/a-comp.c b/libs/plugins/a-comp.lv2/a-comp.c index d54547ab66..0acea93d0e 100644 --- a/libs/plugins/a-comp.lv2/a-comp.c +++ b/libs/plugins/a-comp.lv2/a-comp.c @@ -540,10 +540,10 @@ render_inline_full (cairo_t* cr, const AComp* self) // draw state cairo_set_source_rgba (cr, .8, .8, .8, 1.0); - const float state_x = w * (1.f - (10.f-self->v_state_x)/70.f); - const float state_y = h * (comp_curve (self, self->v_state_x) - 10.f) / -70.f; + const float state_x = w * (1.f - (10.f-(*self->inlevel))/70.f); + const float state_y = h * ((*self->outlevel) - 10.f) / -70.f; - cairo_arc (cr, state_x, state_y, 3.f, 0.f, 2.f*M_PI); + cairo_arc (cr, state_x, state_y, 6.f, 0.f, 2.f*M_PI); cairo_fill (cr); // draw curve diff --git a/libs/plugins/a-exp.lv2/a-exp.c b/libs/plugins/a-exp.lv2/a-exp.c index b0bc4b97fc..0fb8b93b8e 100644 --- a/libs/plugins/a-exp.lv2/a-exp.c +++ b/libs/plugins/a-exp.lv2/a-exp.c @@ -550,6 +550,18 @@ render_inline_full (cairo_t* cr, const AExp* self) cairo_arc (cr, peak_x, peak_y, 3.f, 0.f, 2.f*M_PI); cairo_fill (cr); + + // draw state + cairo_set_source_rgba (cr, .8, .8, .8, 1.0); + cairo_set_line_width(cr, 1.0); + + const float state_x = w * (1.f - (10.f-(*self->inlevel))/70.f); + const float state_y = h * ((*self->outlevel) - 10.f) / -70.f; + + cairo_arc (cr, state_x, state_y, 6.f, 0.f, 2.f*M_PI); + cairo_fill (cr); + + // draw curve cairo_set_source_rgba (cr, .8, .8, .8, 1.0); cairo_move_to (cr, 0, h);