Labels templated.

Six more to go.
This commit is contained in:
Jason Felds
2011-05-31 11:22:21 -04:00
parent 860f6c76f0
commit da73396895
6 changed files with 96 additions and 111 deletions
+3 -3
View File
@@ -972,11 +972,11 @@ void NoteField::DrawPrimitives()
// Label text
FOREACH_CONST( LabelSegment, timing.m_LabelSegments, 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) )
DrawLabelText( fBeat, seg->m_sLabel );
DrawLabelText( fBeat, seg->GetLabel() );
}
}