mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
slight optimization for MidiView::extend_active_notes()
This commit is contained in:
parent
e2cea58876
commit
015890f16c
1 changed files with 3 additions and 1 deletions
|
|
@ -1734,9 +1734,11 @@ MidiView::extend_active_notes (timecnt_t const & duration)
|
|||
return;
|
||||
}
|
||||
|
||||
double x1 = _editing_context.duration_to_pixels (duration);
|
||||
|
||||
for (int i = 0; i < 128; ++i) {
|
||||
if (_active_notes[i]) {
|
||||
_active_notes[i]->set_x1 (_editing_context.duration_to_pixels (duration));
|
||||
_active_notes[i]->set_x1 (x1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue