summaryrefslogtreecommitdiff
path: root/gtk2_ardour/stereo_panner.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-09 00:25:53 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-09 00:25:53 +0000
commit418e7ec22926cf3fe25ba7eea8e6e5bcc2238fd7 (patch)
treeedfc8bd1a52721c9647041be7556f25fb9307738 /gtk2_ardour/stereo_panner.cc
parent5376bc757f913764e61ac17a8efc05dbc7bb93d7 (diff)
recenter stereo panner position indicator
git-svn-id: svn://localhost/ardour2/branches/3.0@8792 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/stereo_panner.cc')
-rw-r--r--gtk2_ardour/stereo_panner.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk2_ardour/stereo_panner.cc b/gtk2_ardour/stereo_panner.cc
index 50be52f3ca..128bfe6c77 100644
--- a/gtk2_ardour/stereo_panner.cc
+++ b/gtk2_ardour/stereo_panner.cc
@@ -47,7 +47,7 @@ using namespace std;
using namespace Gtk;
using namespace Gtkmm2ext;
-static const int pos_box_size = 9;
+static const int pos_box_size = 8;
static const int lr_box_size = 15;
static const int step_down = 10;
static const int top_step = 2;
@@ -254,10 +254,8 @@ StereoPanner::on_expose_event (GdkEventExpose* ev)
/* draw the central box */
- double spos = (pos_box_size/2.0) + (usable_width * pos);
-
context->set_line_width (2.0);
- context->move_to (spos + (pos_box_size/2.0), top_step); /* top right */
+ context->move_to (center + (pos_box_size/2.0), top_step); /* top right */
context->rel_line_to (0.0, pos_box_size); /* lower right */
context->rel_line_to (-pos_box_size/2.0, 4.0); /* bottom point */
context->rel_line_to (-pos_box_size/2.0, -4.0); /* lower left */