summaryrefslogtreecommitdiff
path: root/gtk2_ardour/panner.cc
diff options
context:
space:
mode:
authorJesse Chappell <jesse@essej.net>2006-12-30 06:37:00 +0000
committerJesse Chappell <jesse@essej.net>2006-12-30 06:37:00 +0000
commit4fa71e154f3cebb3d4bf8f46ec3f19d6aeaded72 (patch)
tree7f3f188b8ef69fbc29599d1cf810406e7a8a8c98 /gtk2_ardour/panner.cc
parent34a813c1a13263c2f37b945771093f428efb9692 (diff)
tweaked panner appearance and consistency, panner line now distinct color from triangles. shift-click now reverts panner to center, left or right depending on number of channels. minor updates to osx app build script. fixed region editor re-show problem.
git-svn-id: svn://localhost/ardour2/trunk@1253 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/panner.cc')
-rw-r--r--gtk2_ardour/panner.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/panner.cc b/gtk2_ardour/panner.cc
index a447b69935..bb9b432184 100644
--- a/gtk2_ardour/panner.cc
+++ b/gtk2_ardour/panner.cc
@@ -4,7 +4,7 @@
using namespace std;
-static const int triangle_size = 7;
+static const int triangle_size = 5;
static void
null_label_callback (char* buf, unsigned int bufsize)
@@ -65,13 +65,13 @@ PannerBar::expose (GdkEventExpose* ev)
// right
- points[0].x = (darea.get_width() - triangle_size);
+ points[0].x = (darea.get_width() - triangle_size) - 1;
points[0].y = 0;
- points[1].x = darea.get_width();
+ points[1].x = darea.get_width() - 1;
points[1].y = 0;
- points[2].x = darea.get_width();
+ points[2].x = darea.get_width() - 1;
points[2].y = triangle_size;
gdk_draw_polygon (win->gobj(), gc->gobj(), true, points, 3);