diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-04-01 08:35:00 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-04-01 10:10:50 -0600 |
commit | 98884e9736062b267ee7b7c99aa1c970f56fab6b (patch) | |
tree | 1964b63aac01ce74f0e969ea4b47e8c9337f53ef /gtk2_ardour/editor_ops.cc | |
parent | 8d28115ec78e011af2fab5c9849fbf9e09ea4786 (diff) |
rename variable (frames -> samples)
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 2025bce69d..1956257dd8 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -1767,7 +1767,7 @@ Editor::temporal_zoom_step_scale (bool zoom_out, double scale) } void -Editor::temporal_zoom (samplecnt_t fpp) +Editor::temporal_zoom (samplecnt_t spp) { if (!_session) { return; @@ -1783,10 +1783,10 @@ Editor::temporal_zoom (samplecnt_t fpp) samplepos_t where; bool in_track_canvas; bool use_mouse_sample = true; - samplecnt_t nfpp; + samplecnt_t nspp; double l; - if (fpp == samples_per_pixel) { + if (spp == samples_per_pixel) { return; } @@ -1798,10 +1798,10 @@ Editor::temporal_zoom (samplecnt_t fpp) // all of which is used for the editor track displays. The whole day // would be 4147200000 samples, so 2592000 samples per pixel. - nfpp = min (fpp, (samplecnt_t) 2592000); - nfpp = max ((samplecnt_t) 1, nfpp); + nspp = min (spp, (samplecnt_t) 2592000); + nspp = max ((samplecnt_t) 1, nspp); - new_page_size = (samplepos_t) floor (_visible_canvas_width * nfpp); + new_page_size = (samplepos_t) floor (_visible_canvas_width * nspp); half_page_size = new_page_size / 2; Editing::ZoomFocus zf = zoom_focus; @@ -1897,7 +1897,7 @@ Editor::temporal_zoom (samplecnt_t fpp) // leftmost_after_zoom = min (leftmost_after_zoom, _session->current_end_sample()); - reposition_and_zoom (leftmost_after_zoom, nfpp); + reposition_and_zoom (leftmost_after_zoom, nspp); } void |