summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mono_panner.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-01-10 01:02:45 +0100
committerRobin Gareus <robin@gareus.org>2014-01-10 01:02:45 +0100
commitca0667e088f667233aaa402271786c95ee750349 (patch)
tree5b866b3b172df9a50a90dba1ebf5c4b61d299625 /gtk2_ardour/mono_panner.cc
parent2224b9a09c9c469255f74f1fe2d8c8c1f83cd1bb (diff)
updated balance GUI
Diffstat (limited to 'gtk2_ardour/mono_panner.cc')
-rw-r--r--gtk2_ardour/mono_panner.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/gtk2_ardour/mono_panner.cc b/gtk2_ardour/mono_panner.cc
index 5812da89c5..347f5bb575 100644
--- a/gtk2_ardour/mono_panner.cc
+++ b/gtk2_ardour/mono_panner.cc
@@ -234,18 +234,16 @@ MonoPanner::on_expose_event (GdkEventExpose*)
context->stroke ();
} else {
context->move_to (left + half_lr_box, half_lr_box+step_down+lr_box_size);
+ context->line_to (left + half_lr_box, half_lr_box + step_down);
+ context->line_to ((pos_box_size/2.0) + (usable_width/2.0), half_lr_box+step_down+lr_box_size);
+ context->line_to (right - half_lr_box, half_lr_box + step_down);
context->line_to (right - 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->line_to ((pos_box_size/2.0) + (usable_width/2.0), half_lr_box + step_down);
context->close_path();
+
context->set_source_rgba (UINT_RGBA_R_FLT(f), UINT_RGBA_G_FLT(f), UINT_RGBA_B_FLT(f), UINT_RGBA_A_FLT(f));
context->fill_preserve ();
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 ();
-
- context->move_to (left + half_lr_box, half_lr_box + step_down);
- context->line_to (right - half_lr_box, half_lr_box + step_down);
- context->stroke ();
}
/* draw the position indicator */