diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2018-07-26 14:07:45 -0500 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-07-27 00:26:21 +0200 |
commit | 808dc8ad64fd02fc9f66326916dc930fcaf6651c (patch) | |
tree | 75af392996f52b9a170a1af5e6026ae610561759 /gtk2_ardour/editor_tempodisplay.cc | |
parent | 0d32105a1ec0a09f0676d06c133b66ec4a6b21f5 (diff) |
new_grid: fix some thinkos in ruler math, to better match sensible grid lines.
Tweak enums to better match the Grid values they represent.
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r-- | gtk2_ardour/editor_tempodisplay.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index fa2b821c24..4630f1fe43 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -326,10 +326,10 @@ Editor::compute_current_bbt_points (std::vector<TempoMap::BBTPoint>& grid, sampl const double lower_beat = floor (max (0.0, _session->tempo_map().beat_at_sample (leftmost))) - 1.0; switch (bbt_ruler_scale) { - case bbt_show_beats: - case bbt_show_ticks: - case bbt_show_ticks_detail: - case bbt_show_ticks_super_detail: + case bbt_show_quarters: + case bbt_show_eighths: + case bbt_show_sixteenths: + case bbt_show_thirtyseconds: _session->tempo_map().get_grid (grid, max (_session->tempo_map().sample_at_beat (lower_beat), (samplepos_t) 0), rightmost); break; |