From b1c48972f2914b49d45a7cef2b38a0a125bd731e Mon Sep 17 00:00:00 2001 From: Nick Mainsbridge Date: Sun, 19 Oct 2008 07:55:42 +0000 Subject: 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 --- gtk2_ardour/editor_tempodisplay.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour/editor_tempodisplay.cc') 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 (); -- cgit v1.2.3