fix "-1" bpm output

This commit is contained in:
Glenn Maynard
2003-11-17 01:41:21 +00:00
parent 0d480754a2
commit 0492e9b5a0
+6 -3
View File
@@ -113,10 +113,14 @@ void BPMDisplay::SetBPMRange( const vector<float> &BPMS )
MaxBPM = max( MaxBPM, (int) roundf(BPMS[i]) );
}
if( MinBPM == MaxBPM )
m_textBPM.SetText( ssprintf("%i", MinBPM) );
{
if( MinBPM == -1 )
m_textBPM.SetText( "..." ); // random
else
m_textBPM.SetText( ssprintf("%i", MinBPM) );
}
else
m_textBPM.SetText( ssprintf("%i%s%i", MinBPM, SEPARATOR.c_str(), MaxBPM) );
return;
} else {
m_BPMS.clear();
for( i = 0; i < BPMS.size(); ++i )
@@ -151,7 +155,6 @@ void BPMDisplay::SetBPMRange( const vector<float> &BPMS )
m_textBPM.SetDiffuse( NORMAL_COLOR );
m_sprLabel->SetDiffuse( NORMAL_COLOR );
}
}
void BPMDisplay::CycleRandomly()