This commit is contained in:
Glenn Maynard
2004-05-01 06:26:57 +00:00
parent 084042fc47
commit d4352ed68b
+1 -5
View File
@@ -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.