diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-09 15:39:57 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-09 15:39:57 -0400 |
commit | c8ab1aaf7da5671d6040c042a173233c3b1905a4 (patch) | |
tree | f5fe9cd7ab5bcb2a59e9306037eec31d60045a4a /gtk2_ardour/editor_tempodisplay.cc | |
parent | 7a3a66db725793e00f26fd722861f4c5cc819285 (diff) |
use Canvas::LineSet for tempolines rather than N different Canvas::Line items plus a cache
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r-- | gtk2_ardour/editor_tempodisplay.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index 10333f1eec..fab99fc0b2 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -40,6 +40,7 @@ #include "canvas/canvas.h" #include "canvas/item.h" +#include "canvas/line_set.h" #include "editor.h" #include "marker.h" @@ -176,7 +177,7 @@ Editor::draw_measures (ARDOUR::TempoMap::BBTPointList::const_iterator& begin, } if (tempo_lines == 0) { - tempo_lines = new TempoLines (*_track_canvas, time_line_group, ArdourCanvas::COORD_MAX); + tempo_lines = new TempoLines (time_line_group, ArdourCanvas::LineSet::Vertical); } tempo_lines->draw (begin, end); |