From c8ab1aaf7da5671d6040c042a173233c3b1905a4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 9 Jun 2014 15:39:57 -0400 Subject: use Canvas::LineSet for tempolines rather than N different Canvas::Line items plus a cache --- gtk2_ardour/midi_streamview.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/midi_streamview.cc') diff --git a/gtk2_ardour/midi_streamview.cc b/gtk2_ardour/midi_streamview.cc index a1e1269468..04cbf8301d 100644 --- a/gtk2_ardour/midi_streamview.cc +++ b/gtk2_ardour/midi_streamview.cc @@ -74,8 +74,8 @@ MidiStreamView::MidiStreamView (MidiTimeAxisView& tv) /* put the note lines in the timeaxisview's group, so it can be put below ghost regions from MIDI underlays */ - _note_lines = new ArdourCanvas::LineSet (_canvas_group); - + _note_lines = new ArdourCanvas::LineSet (_canvas_group, ArdourCanvas::LineSet::Horizontal); + _note_lines->Event.connect( sigc::bind(sigc::mem_fun(_trackview.editor(), &PublicEditor::canvas_stream_view_event), @@ -273,7 +273,8 @@ void MidiStreamView::update_contents_height () { StreamView::update_contents_height(); - _note_lines->set_height (child_height ()); + + _note_lines->set_extent (ArdourCanvas::COORD_MAX); apply_note_range (lowest_note(), highest_note(), true); } -- cgit v1.2.3