cleanup
This commit is contained in:
@@ -252,6 +252,19 @@ void MusicWheelItem::RefreshGrades()
|
||||
}
|
||||
}
|
||||
|
||||
void MusicWheelItem::DrawPrimitives()
|
||||
{
|
||||
Sprite *pBar = NULL;
|
||||
if( m_sprBar.GetVisible() )
|
||||
pBar = &m_sprBar;
|
||||
else if( m_sprSectionBar.GetVisible() )
|
||||
pBar = &m_sprSectionBar;
|
||||
else
|
||||
pBar = &m_sprExpandedBar;
|
||||
|
||||
WheelItemBase::DrawPrimitives( *pBar );
|
||||
}
|
||||
|
||||
/*
|
||||
* (c) 2001-2004 Chris Danford, Chris Gomez, Glenn Maynard
|
||||
* All rights reserved.
|
||||
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
BitmapText m_textSort;
|
||||
GradeDisplay m_GradeDisplay[NUM_PLAYERS];
|
||||
|
||||
void DrawPrimitives() { WheelItemBase::DrawPrimitives(m_sprBar.GetVisible() ? m_sprBar : (m_sprSectionBar.GetVisible() ? m_sprSectionBar : m_sprExpandedBar)); }
|
||||
void DrawPrimitives();
|
||||
};
|
||||
|
||||
struct WheelItemData : public WheelItemBaseData
|
||||
|
||||
Reference in New Issue
Block a user