improved editor playback performance by not drawing unncessary Actors

fixed crash in Big transform
fixed ugly area highlight alignment
This commit is contained in:
Chris Danford
2003-02-19 07:59:00 +00:00
parent 3160a86e65
commit 5ecd3afdd7
10 changed files with 84 additions and 62 deletions
+10
View File
@@ -89,3 +89,13 @@ bool StyleDef::MatchesNotesType( NotesType type ) const
return false;
}
void StyleDef::GetMinAndMaxColX( PlayerNumber pn, float& fMixXOut, float& fMaxXOut ) const
{
fMixXOut = +100000;
fMaxXOut = -100000;
for( int i=0; i<m_iColsPerPlayer; i++ )
{
fMixXOut = min( fMixXOut, m_ColumnInfo[pn][i].fXOffset );
fMaxXOut = max( fMaxXOut, m_ColumnInfo[pn][i].fXOffset );
}
}