diff options
author | Nick Mainsbridge <beatroute@iprimus.com.au> | 2008-10-19 07:55:42 +0000 |
---|---|---|
committer | Nick Mainsbridge <beatroute@iprimus.com.au> | 2008-10-19 07:55:42 +0000 |
commit | b1c48972f2914b49d45a7cef2b38a0a125bd731e (patch) | |
tree | cede5da093267aae1b496e3d17e8104455150cda /gtk2_ardour/editor_tempodisplay.cc | |
parent | 063ab23465759839eb723c20664cbfe388701fda (diff) |
Handle changed session duration & resizing canvas better wrt end marker, remove unused last_canvas_frame, don't redraw the entire mixer every time its presented, consistent space between rightmost horizontal scroller position and end marker when zooming, possible fix for gaps in tempo lines.
git-svn-id: svn://localhost/ardour2/branches/3.0@3982 d708f5d6-7413-0410-9779-e7cbd77b26cf
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 609b5b221c..923c2fbd1c 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -105,9 +105,9 @@ Editor::tempo_map_changed (Change ignored) if (tempo_lines) tempo_lines->tempo_map_changed(); - compute_current_bbt_points(leftmost_frame, leftmost_frame + (nframes_t)(edit_packer.get_width() * frames_per_unit)); - session->tempo_map().apply_with_metrics (*this, &Editor::draw_metric_marks); // redraw metric markers - update_tempo_based_rulers (); + compute_current_bbt_points(leftmost_frame, leftmost_frame + current_page_frames()); + session->tempo_map().apply_with_metrics (*this, &Editor::draw_metric_marks); + update_tempo_based_rulers ();// redraw metric markers redraw_measures (); } @@ -118,7 +118,7 @@ Editor::redisplay_tempo (bool immediate_redraw) return; } - compute_current_bbt_points (leftmost_frame, leftmost_frame + (nframes_t)(edit_packer.get_width() * frames_per_unit)); // redraw rulers and measures + compute_current_bbt_points (leftmost_frame, leftmost_frame + current_page_frames()); // redraw rulers and measures redraw_measures(); update_tempo_based_rulers (); |