another small improvement to MGR::add_note() performance.
This commit is contained in:
parent
52275254a7
commit
5091a04362
@ -343,9 +343,8 @@ MidiGhostRegion::add_note (NoteBase* n)
|
|||||||
uint8_t const note_num = n->note()->note();
|
uint8_t const note_num = n->note()->note();
|
||||||
double const h = note_height(trackview, mv);
|
double const h = note_height(trackview, mv);
|
||||||
double const y = note_y(trackview, mv, note_num);
|
double const y = note_y(trackview, mv, note_num);
|
||||||
if (n->x0() < base_rect->x0() || n->x1() > base_rect->x1()) {
|
|
||||||
event->item->hide();
|
if (!n->item()->visible()) {
|
||||||
} else if (note_num < mv->lowest_note() || note_num > mv->highest_note()) {
|
|
||||||
event->item->hide();
|
event->item->hide();
|
||||||
} else {
|
} else {
|
||||||
if (!event->is_hit) {
|
if (!event->is_hit) {
|
||||||
|
Loading…
Reference in New Issue
Block a user