simplify
This commit is contained in:
@@ -548,12 +548,8 @@ void NoteField::DrawPrimitives()
|
|||||||
continue; // don't draw anything
|
continue; // don't draw anything
|
||||||
|
|
||||||
// If no part of this HoldNote is on the screen, skip it
|
// If no part of this HoldNote is on the screen, skip it
|
||||||
if( !( iFirstIndexToDraw <= hn.iEndRow && hn.iEndRow <= iLastIndexToDraw ||
|
if( !hn.RangeOverlaps(iFirstIndexToDraw, iLastIndexToDraw) )
|
||||||
iFirstIndexToDraw <= hn.iStartRow && hn.iStartRow <= iLastIndexToDraw ||
|
|
||||||
hn.iStartRow < iFirstIndexToDraw && hn.iEndRow > iLastIndexToDraw ) )
|
|
||||||
{
|
|
||||||
continue; // skip
|
continue; // skip
|
||||||
}
|
|
||||||
|
|
||||||
// TRICKY: If boomerang is on, then all notes in the range
|
// TRICKY: If boomerang is on, then all notes in the range
|
||||||
// [iFirstIndexToDraw,iLastIndexToDraw] aren't necessarily visible.
|
// [iFirstIndexToDraw,iLastIndexToDraw] aren't necessarily visible.
|
||||||
|
|||||||
Reference in New Issue
Block a user