vectorize NoteDisplayCols
This commit is contained in:
@@ -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 );
|
||||||
|
|||||||
@@ -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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user