compact meter+fader for > 6 channel tracks
[ardour.git] / gtk2_ardour / control_point.cc
index 5343ff5f24a0fde8453cbde5d171b21063c3ce57..90761d77c814691a584a4f04bf6daf2e3b2ff31c 100644 (file)
@@ -44,7 +44,7 @@ ControlPoint::ControlPoint (AutomationLine& al)
        _size = 4.0;
 
        _item = new ArdourCanvas::Rectangle (&_line.canvas_group());
-       _item->set_fill (false);
+       _item->set_fill (true);
        _item->set_fill_color (ARDOUR_UI::config()->get_canvasvar_ControlPointFill());
        _item->set_outline_color (ARDOUR_UI::config()->get_canvasvar_ControlPointOutline());
        _item->set_data ("control_point", this);
@@ -69,7 +69,7 @@ ControlPoint::ControlPoint (const ControlPoint& other, bool /*dummy_arg_to_force
        _size = other._size;
 
        _item = new ArdourCanvas::Rectangle (&_line.canvas_group());
-       _item->set_fill (false);
+       _item->set_fill (true);
        _item->set_outline_color (ARDOUR_UI::config()->get_canvasvar_ControlPointOutline());
 
        /* NOTE: no event handling in copied ControlPoints */
@@ -167,8 +167,8 @@ ControlPoint::move_to (double x, double y, ShapeType shape)
        _shape = shape;
 }
 
-void
-ControlPoint::i2w (double& x, double& y) const
+ArdourCanvas::Item&
+ControlPoint::item() const 
 {
-       _item->item_to_canvas (x, y);
+       return *_item;
 }