summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_streamview.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-06-09 15:39:57 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-06-09 15:39:57 -0400
commitc8ab1aaf7da5671d6040c042a173233c3b1905a4 (patch)
treef5fe9cd7ab5bcb2a59e9306037eec31d60045a4a /gtk2_ardour/midi_streamview.cc
parent7a3a66db725793e00f26fd722861f4c5cc819285 (diff)
use Canvas::LineSet for tempolines rather than N different Canvas::Line items plus a cache
Diffstat (limited to 'gtk2_ardour/midi_streamview.cc')
-rw-r--r--gtk2_ardour/midi_streamview.cc7
1 files changed, 4 insertions, 3 deletions
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);
}