cleanup: move code from ScreenOptions into OptionRow

This commit is contained in:
Chris Danford
2005-02-19 19:17:28 +00:00
parent 453991a928
commit 36b325a295
5 changed files with 642 additions and 483 deletions
+2 -2
View File
@@ -878,11 +878,11 @@ void ScreenOptionsMaster::RefreshIcons()
{
for( unsigned i=0; i<m_Rows.size(); ++i ) // foreach options line
{
if( m_Rows[i]->m_Type == OptionRow::ROW_EXIT )
if( m_Rows[i]->GetRowType() == OptionRow::ROW_EXIT )
continue; // skip
OptionRow &row = *m_Rows[i];
const OptionRowDefinition &data = row.m_RowDef;
const OptionRowDefinition &data = row.GetRowDef();
// find first selection and whether multiple are selected
int iFirstSelection = row.GetOneSelection( p, true );