13
0

another small improvement to MGR::add_note() performance.

This commit is contained in:
nick_m 2016-12-30 02:21:12 +11:00
parent 52275254a7
commit 5091a04362

View File

@ -343,9 +343,8 @@ MidiGhostRegion::add_note (NoteBase* n)
uint8_t const note_num = n->note()->note();
double const h = note_height(trackview, mv);
double const y = note_y(trackview, mv, note_num);
if (n->x0() < base_rect->x0() || n->x1() > base_rect->x1()) {
event->item->hide();
} else if (note_num < mv->lowest_note() || note_num > mv->highest_note()) {
if (!n->item()->visible()) {
event->item->hide();
} else {
if (!event->is_hit) {