mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
minor code simplification
This commit is contained in:
parent
562765ba76
commit
0ca8b26af7
1 changed files with 1 additions and 5 deletions
|
|
@ -2683,11 +2683,7 @@ Pianoroll::zoom_to_show (Temporal::timecnt_t const & duration)
|
|||
return;
|
||||
}
|
||||
|
||||
/* make it 20% wider than we need */
|
||||
samplecnt_t samples = duration.samples();
|
||||
samplecnt_t spp = floor (samples / _track_canvas_width);
|
||||
|
||||
reset_zoom (spp);
|
||||
reset_zoom ((samplecnt_t) floor (duration.samples() / _track_canvas_width));
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue