From 8877199ae052a33c68541dd610dba385645c6e1e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 12 Apr 2013 11:21:12 -0400 Subject: leftmost_position => leftmost_sample, current_page_frames => current_page_samples --- gtk2_ardour/editor_ops.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/editor_ops.cc') diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 1e96f378a7..d7603d4ab0 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -1146,7 +1146,7 @@ void Editor::scroll_playhead (bool forward) { framepos_t pos = playhead_cursor->current_frame (); - framecnt_t delta = (framecnt_t) floor (current_page_frames() / 0.8); + framecnt_t delta = (framecnt_t) floor (current_page_samples() / 0.8); if (forward) { if (pos == max_framepos) { @@ -1371,7 +1371,7 @@ Editor::temporal_zoom (double fpp) return; } - framepos_t current_page = current_page_frames(); + framepos_t current_page = current_page_samples(); framepos_t current_leftmost = leftmost_frame; framepos_t current_rightmost; framepos_t current_center; @@ -1976,7 +1976,7 @@ Editor::insert_region_list_drag (boost::shared_ptr region, int x, int y) where = window_event_frame (&event, &cx, &cy); - if (where < leftmost_frame || where > leftmost_frame + current_page_frames()) { + if (where < leftmost_frame || where > leftmost_frame + current_page_samples()) { /* clearly outside canvas area */ return; } -- cgit v1.2.3