diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-09 14:28:18 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-09 14:28:18 +0000 |
commit | 9926b00a1f84f6c81e80fa77d1202283af0d910e (patch) | |
tree | 5684183165142467ab3a539e9d96d00f5ab69009 /gtk2_ardour/mono_panner.cc | |
parent | ce9470272c07d8574f6c260541eb75e0dbc44d62 (diff) |
panner visual tweaks
git-svn-id: svn://localhost/ardour2/branches/3.0@8802 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mono_panner.cc')
-rw-r--r-- | gtk2_ardour/mono_panner.cc | 12 |
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 */ |