summaryrefslogtreecommitdiff
path: root/gtk2_ardour/stereo_panner.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-09 14:28:18 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-09 14:28:18 +0000
commit9926b00a1f84f6c81e80fa77d1202283af0d910e (patch)
tree5684183165142467ab3a539e9d96d00f5ab69009 /gtk2_ardour/stereo_panner.cc
parentce9470272c07d8574f6c260541eb75e0dbc44d62 (diff)
panner visual tweaks
git-svn-id: svn://localhost/ardour2/branches/3.0@8802 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/stereo_panner.cc')
-rw-r--r--gtk2_ardour/stereo_panner.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/stereo_panner.cc b/gtk2_ardour/stereo_panner.cc
index 128bfe6c77..cff4ebd898 100644
--- a/gtk2_ardour/stereo_panner.cc
+++ b/gtk2_ardour/stereo_panner.cc
@@ -192,6 +192,14 @@ StereoPanner::on_expose_event (GdkEventExpose* ev)
left = center - pan_spread; // center of left box
right = center + pan_spread; // center of right box
+ /* center line */
+
+ context->set_line_width (1.0);
+ context->move_to ((usable_width + lr_box_size)/2.0, 0);
+ context->rel_line_to (0, height);
+ context->set_source_rgba (UINT_RGBA_R_FLT(o), UINT_RGBA_G_FLT(o), UINT_RGBA_B_FLT(o), UINT_RGBA_A_FLT(o));
+ context->stroke ();
+
/* compute & draw the line through the box */
context->set_line_width (2);