mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
some rationalization to how Editor & CueEditor (Pianoroll) handle ZoomLevel and TimeOrigin changes
This commit is contained in:
parent
37f318e417
commit
6918a8a267
7 changed files with 21 additions and 20 deletions
|
|
@ -179,11 +179,13 @@ CueEditor::get_current_zoom () const
|
|||
void
|
||||
CueEditor::reposition_and_zoom (samplepos_t pos, double spp)
|
||||
{
|
||||
set_samples_per_pixel (spp);
|
||||
pending_visual_change.add (VisualChange::ZoomLevel);
|
||||
pending_visual_change.samples_per_pixel = spp;
|
||||
|
||||
horizontal_adjustment.set_value (sample_to_pixel (pos));
|
||||
/* correct rounding errors */
|
||||
_leftmost_sample = pos;
|
||||
pending_visual_change.add (VisualChange::TimeOrigin);
|
||||
pending_visual_change.time_origin = pos;
|
||||
|
||||
ensure_visual_change_idle_handler ();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue