commit 273718ea1fae845129c51b61747dc1e6626471d7 parent 127b52ee307803762b5434a4e30c64740835d044 Author: William Casarin <jb55@jb55.com> Date: Fri, 17 Aug 2018 00:14:37 -0700 gray out inactive channels Diffstat:
M | render.c | | | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/render.c b/render.c @@ -61,11 +61,10 @@ void draw_channel(NVGcontext *vg, struct ln *ln, struct channel *channel) else c = n2t.nvg_color; - if ((channel->nodes[0] == ln->last_drag_target || - channel->nodes[1] == ln->last_drag_target)) + if (channel->active && (channel->nodes[0] == ln->last_drag_target || channel->nodes[1] == ln->last_drag_target)) c.a = 1.0; else { - if (ln->drag_target) { + if (!channel->active || ln->drag_target) { saturate((union color*)&c, 0.01); c.a = 0.1; }