diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-20 16:11:30 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-20 16:11:40 -0400 |
commit | f88cfdb47802241c306273d98f31538d44e6781a (patch) | |
tree | e18e093ad1cd1dd15a175dd6a41c925ec544c9bc /gtk2_ardour/editor.cc | |
parent | 05905d3ec83cf0b780f19dce058288b3a423e336 (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.cc | 8 |
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 (); } } |