summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_tempodisplay.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-01-07 19:05:21 -0500
committerDavid Robillard <d@drobilla.net>2015-01-07 19:05:41 -0500
commit84412e1367b2432aadb6ce996b6c15d2846aadca (patch)
tree922194bb5005d24569b506974a4a0313fd43e2c7 /gtk2_ardour/editor_tempodisplay.cc
parent04bbe402b030017476bc774af0e940bcd99f35b0 (diff)
Draw beat sudivisions according to snap setting.
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r--gtk2_ardour/editor_tempodisplay.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc
index 9075663a56..cbb3dcbdfe 100644
--- a/gtk2_ardour/editor_tempodisplay.cc
+++ b/gtk2_ardour/editor_tempodisplay.cc
@@ -178,8 +178,9 @@ Editor::draw_measures (ARDOUR::TempoMap::BBTPointList::const_iterator& begin,
if (tempo_lines == 0) {
tempo_lines = new TempoLines (time_line_group, ArdourCanvas::LineSet::Vertical);
}
-
- tempo_lines->draw (begin, end, leftmost_frame, _session->frame_rate());
+
+ const unsigned divisions = get_grid_beat_divisions(leftmost_frame);
+ tempo_lines->draw (begin, end, divisions, leftmost_frame, _session->frame_rate());
}
void