rename variable (frames -> samples)
This commit is contained in:
parent
8d28115ec7
commit
98884e9736
@ -1767,7 +1767,7 @@ Editor::temporal_zoom_step_scale (bool zoom_out, double scale)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Editor::temporal_zoom (samplecnt_t fpp)
|
Editor::temporal_zoom (samplecnt_t spp)
|
||||||
{
|
{
|
||||||
if (!_session) {
|
if (!_session) {
|
||||||
return;
|
return;
|
||||||
@ -1783,10 +1783,10 @@ Editor::temporal_zoom (samplecnt_t fpp)
|
|||||||
samplepos_t where;
|
samplepos_t where;
|
||||||
bool in_track_canvas;
|
bool in_track_canvas;
|
||||||
bool use_mouse_sample = true;
|
bool use_mouse_sample = true;
|
||||||
samplecnt_t nfpp;
|
samplecnt_t nspp;
|
||||||
double l;
|
double l;
|
||||||
|
|
||||||
if (fpp == samples_per_pixel) {
|
if (spp == samples_per_pixel) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1798,10 +1798,10 @@ Editor::temporal_zoom (samplecnt_t fpp)
|
|||||||
// all of which is used for the editor track displays. The whole day
|
// all of which is used for the editor track displays. The whole day
|
||||||
// would be 4147200000 samples, so 2592000 samples per pixel.
|
// would be 4147200000 samples, so 2592000 samples per pixel.
|
||||||
|
|
||||||
nfpp = min (fpp, (samplecnt_t) 2592000);
|
nspp = min (spp, (samplecnt_t) 2592000);
|
||||||
nfpp = max ((samplecnt_t) 1, nfpp);
|
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;
|
half_page_size = new_page_size / 2;
|
||||||
|
|
||||||
Editing::ZoomFocus zf = zoom_focus;
|
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());
|
// 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
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user