FakeSegments refactored.
Few things of note: 1) Slowly going away from hungarian notation. 2) Trying to respect public/private members. 2a) Yes, structs can work like this. 3) Trying to not require horizontal scrolling. If anyone else wants a crack, go ahead: we have 9 segments left. :)
This commit is contained in:
+3
-3
@@ -1012,11 +1012,11 @@ void NoteField::DrawPrimitives()
|
||||
{
|
||||
FOREACH_CONST( FakeSegment, timing.m_FakeSegments, seg )
|
||||
{
|
||||
if( seg->m_iStartRow >= iFirstRowToDraw && seg->m_iStartRow <= iLastRowToDraw )
|
||||
if( seg->GetRow() >= iFirstRowToDraw && seg->GetRow() <= iLastRowToDraw )
|
||||
{
|
||||
float fBeat = NoteRowToBeat(seg->m_iStartRow);
|
||||
float fBeat = seg->GetBeat();
|
||||
if( IS_ON_SCREEN(fBeat) )
|
||||
DrawFakeText( fBeat, seg->m_fLengthBeats );
|
||||
DrawFakeText( fBeat, seg->GetLength() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user