slight optimization for MidiView::extend_active_notes()

This commit is contained in:
Paul Davis 2025-11-13 17:08:31 -07:00
parent e2cea58876
commit 015890f16c

View file

@ -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);
}
}
}