summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-04-20 16:11:30 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-04-20 16:11:40 -0400
commitf88cfdb47802241c306273d98f31538d44e6781a (patch)
treee18e093ad1cd1dd15a175dd6a41c925ec544c9bc /gtk2_ardour/editor.cc
parent05905d3ec83cf0b780f19dce058288b3a423e336 (diff)
remove Editor::redraw_measures to improve efficiency of tempo measure line redraws
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 96edd51af6..d458b41b84 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -3725,8 +3725,14 @@ Editor::set_show_measures (bool yn)
if (tempo_lines) {
tempo_lines->show();
}
- (void) redraw_measures ();
+
+ ARDOUR::TempoMap::BBTPointList::const_iterator begin;
+ ARDOUR::TempoMap::BBTPointList::const_iterator end;
+
+ compute_current_bbt_points (leftmost_frame, leftmost_frame + current_page_samples(), begin, end);
+ draw_measures (begin, end);
}
+
instant_save ();
}
}