vectorize NoteDisplayCols

This commit is contained in:
Glenn Maynard
2004-07-27 04:34:06 +00:00
parent f1254b50de
commit bb698efc24
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ void NoteField::CacheNoteSkin( CString skin )
return; return;
LOG->Trace("NoteField::CacheNoteSkin: cache %s", skin.c_str() ); LOG->Trace("NoteField::CacheNoteSkin: cache %s", skin.c_str() );
NoteDisplayCols *nd = new NoteDisplayCols; NoteDisplayCols *nd = new NoteDisplayCols( GetNumTracks() );
for( int c=0; c<GetNumTracks(); c++ ) for( int c=0; c<GetNumTracks(); c++ )
nd->display[c].Load( c, m_PlayerNumber, skin, m_fYReverseOffsetPixels ); nd->display[c].Load( c, m_PlayerNumber, skin, m_fYReverseOffsetPixels );
nd->m_ReceptorArrowRow.Load( m_PlayerNumber, skin, m_fYReverseOffsetPixels ); nd->m_ReceptorArrowRow.Load( m_PlayerNumber, skin, m_fYReverseOffsetPixels );
+3 -1
View File
@@ -64,9 +64,11 @@ protected:
// color arrows // color arrows
struct NoteDisplayCols struct NoteDisplayCols
{ {
NoteDisplay display[MAX_NOTE_TRACKS]; NoteDisplay *display;
ReceptorArrowRow m_ReceptorArrowRow; ReceptorArrowRow m_ReceptorArrowRow;
GhostArrowRow m_GhostArrowRow; GhostArrowRow m_GhostArrowRow;
NoteDisplayCols( int iNumCols ) { display = new NoteDisplay[iNumCols]; }
~NoteDisplayCols() { delete [] display; }
}; };
/* All loaded note displays, mapped by their name. */ /* All loaded note displays, mapped by their name. */