projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf7c4c7
)
a-comp: Fix inline comp curve shading
author
Damien Zammit
<damien@zamaudio.com>
Tue, 5 Jul 2016 08:19:00 +0000
(18:19 +1000)
committer
Damien Zammit
<damien@zamaudio.com>
Tue, 5 Jul 2016 08:19:00 +0000
(18:19 +1000)
libs/plugins/a-comp.lv2/a-comp.c
patch
|
blob
|
history
diff --git
a/libs/plugins/a-comp.lv2/a-comp.c
b/libs/plugins/a-comp.lv2/a-comp.c
index 77895410f251f4f704642ff3f47531bff45c03b3..62d2a1d3125903f001def2e8e465d18b1209dbd3 100644
(file)
--- 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 -
y, x, y
);
+ cairo_rectangle (cr, 0, h -
x, y, h
);
if (self->v_ratio > 1.0) {
cairo_set_source (cr, pat);
} else {