summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mono_panner.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/mono_panner.cc')
-rw-r--r--gtk2_ardour/mono_panner.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk2_ardour/mono_panner.cc b/gtk2_ardour/mono_panner.cc
index 8b3cbc73b2..9f21039250 100644
--- a/gtk2_ardour/mono_panner.cc
+++ b/gtk2_ardour/mono_panner.cc
@@ -216,13 +216,17 @@ MonoPanner::on_expose_event (GdkEventExpose* ev)
/* 2 lines that connect them both */
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->set_line_width (1.0);
- context->move_to (left + half_lr_box, half_lr_box+step_down);
- context->line_to (right - half_lr_box, half_lr_box+step_down);
+
+ /* make the lines a little longer than they need to be, because the corners of
+ the boxes are rounded and we don't want a gap
+ */
+ context->move_to (left + half_lr_box - corner_radius, half_lr_box+step_down);
+ context->line_to (right - half_lr_box + corner_radius, half_lr_box+step_down);
context->stroke ();
- context->move_to (left + half_lr_box, half_lr_box+step_down+lr_box_size);
- context->line_to (right - half_lr_box, half_lr_box+step_down+lr_box_size);
+ context->move_to (left + half_lr_box - corner_radius, half_lr_box+step_down+lr_box_size);
+ context->line_to (right - half_lr_box + corner_radius, half_lr_box+step_down+lr_box_size);
context->stroke ();
/* draw the position indicator */