get rid of some SetSize calls
This commit is contained in:
@@ -471,7 +471,7 @@ void MusicWheel::BuildWheelItemDatas( CArray<WheelItemData, WheelItemData&> &arr
|
|||||||
case SORT_MOST_PLAYED:
|
case SORT_MOST_PLAYED:
|
||||||
SortSongPointerArrayByMostPlayed( arraySongs );
|
SortSongPointerArrayByMostPlayed( arraySongs );
|
||||||
if( arraySongs.GetSize() > 30 )
|
if( arraySongs.GetSize() > 30 )
|
||||||
arraySongs.SetSize( 30 );
|
arraySongs.erase(arraySongs.begin()+30, arraySongs.end());
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ASSERT(0); // unhandled SortOrder
|
ASSERT(0); // unhandled SortOrder
|
||||||
@@ -480,9 +480,9 @@ void MusicWheel::BuildWheelItemDatas( CArray<WheelItemData, WheelItemData&> &arr
|
|||||||
|
|
||||||
|
|
||||||
///////////////////////////////////
|
///////////////////////////////////
|
||||||
// Build an array of WheelItemDatas from the sorted list of Song*s
|
// Build an array of WheelItemDatas from the sorted list of Song*'s
|
||||||
///////////////////////////////////
|
///////////////////////////////////
|
||||||
arrayWheelItemDatas.SetSize( 0, 300 ); // clear out the previous wheel items and set large capacity jumps
|
arrayWheelItemDatas.clear(); // clear out the previous wheel items
|
||||||
|
|
||||||
bool bUseSections = false;
|
bool bUseSections = false;
|
||||||
switch( so )
|
switch( so )
|
||||||
|
|||||||
@@ -609,8 +609,10 @@ void RageDisplay::GetProjectionTransform( D3DXMATRIX* pMatrixOut )
|
|||||||
|
|
||||||
void RageDisplay::ResetMatrixStack()
|
void RageDisplay::ResetMatrixStack()
|
||||||
{
|
{
|
||||||
m_MatrixStack.SetSize( 1, 20 );
|
D3DXMATRIX ident;
|
||||||
D3DXMatrixIdentity( &GetTopMatrix() );
|
D3DXMatrixIdentity( &ident );
|
||||||
|
m_MatrixStack.clear();
|
||||||
|
m_MatrixStack.push_back(ident);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RageDisplay::PushMatrix()
|
void RageDisplay::PushMatrix()
|
||||||
|
|||||||
Reference in New Issue
Block a user