diff options
author | Robin Gareus <robin@gareus.org> | 2014-01-09 14:32:13 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-01-09 14:32:13 +0100 |
commit | 5d3b441bf79a262ee6e049a13631c327d69d576a (patch) | |
tree | 94ff9142b7278ccb310878899fdc84eb2e2a391b /gtk2_ardour/mono_panner.cc | |
parent | 21ca6a10a96c135e7435f1cc786f4395020ca232 (diff) |
draw settings of bypassed panners
Diffstat (limited to 'gtk2_ardour/mono_panner.cc')
-rw-r--r-- | gtk2_ardour/mono_panner.cc | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/gtk2_ardour/mono_panner.cc b/gtk2_ardour/mono_panner.cc index c1039092c5..57939a4f19 100644 --- a/gtk2_ardour/mono_panner.cc +++ b/gtk2_ardour/mono_panner.cc @@ -133,13 +133,18 @@ MonoPanner::on_expose_event (GdkEventExpose*) pf = colors.pos_fill; po = colors.pos_outline; + if (_panner_shell->bypassed()) { + b = 0x20202040; + f = 0x404040ff; + o = 0x606060ff; + po = 0x606060ff; + pf = 0x404040ff; + t = 0x606060ff; + } + /* background */ - if (!_panner_shell->bypassed()) { - context->set_source_rgba (UINT_RGBA_R_FLT(b), UINT_RGBA_G_FLT(b), UINT_RGBA_B_FLT(b), UINT_RGBA_A_FLT(b)); - } else { - context->set_source_rgba (0.1, 0.1, 0.1, 0.2); - } + context->set_source_rgba (UINT_RGBA_R_FLT(b), UINT_RGBA_G_FLT(b), UINT_RGBA_B_FLT(b), UINT_RGBA_A_FLT(b)); context->rectangle (0, 0, width, height); context->fill (); @@ -169,10 +174,6 @@ MonoPanner::on_expose_event (GdkEventExpose*) context->line_to ((pos_box_size/2.0) + (usable_width/2.0), height); context->stroke (); - if (_panner_shell->bypassed()) { - return true; - } - /* left box */ rounded_rectangle (context, |