summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_tempodisplay.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2017-03-10 08:37:26 -0600
committerBen Loftis <ben@harrisonconsoles.com>2017-03-10 08:50:29 -0600
commit830728aaeec62aa39eb5ee9607f20fddbe56ec40 (patch)
treed8840066208233801067be6a63b488e4701df0e9 /gtk2_ardour/editor_tempodisplay.cc
parentb3ef0a9e8d4a5ed9042c0e61d5437ad99c664247 (diff)
compute_bbt_ruler_scale should not be necessary for every redraw of the timeline. Works OK here without it...
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r--gtk2_ardour/editor_tempodisplay.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc
index 64a9f72a45..e90c99baa6 100644
--- a/gtk2_ardour/editor_tempodisplay.cc
+++ b/gtk2_ardour/editor_tempodisplay.cc
@@ -299,7 +299,10 @@ Editor::redisplay_tempo (bool immediate_redraw)
}
if (immediate_redraw) {
- compute_bbt_ruler_scale (leftmost_frame, leftmost_frame + current_page_samples());
+
+//only recalculate bbt_ruler_scale on a zoom or snap-change; not every redraw; if a case is found where this is necessary, uncomment this line.
+// compute_bbt_ruler_scale (leftmost_frame, leftmost_frame + current_page_samples());
+
std::vector<TempoMap::BBTPoint> grid;
if (bbt_ruler_scale != bbt_show_many) {