simplify
This commit is contained in:
@@ -293,7 +293,9 @@ void ScreenOptions::RestartOptions()
|
||||
CHECKPOINT;
|
||||
|
||||
PositionRows();
|
||||
RefreshAllIcons();
|
||||
FOREACH_HumanPlayer( pn )
|
||||
for( unsigned r=0; r<m_pRows.size(); ++r )
|
||||
this->RefreshIcons( r, pn );
|
||||
PositionCursors();
|
||||
UpdateEnabledDisabled();
|
||||
|
||||
@@ -416,13 +418,6 @@ void ScreenOptions::RefreshIcons( int iRow, PlayerNumber pn )
|
||||
m_pRows[iRow]->SetOptionIcon( pn, sIcon, gc );
|
||||
}
|
||||
|
||||
void ScreenOptions::RefreshAllIcons()
|
||||
{
|
||||
FOREACH_HumanPlayer( p )
|
||||
for( unsigned r=0; r<m_pRows.size(); ++r )
|
||||
this->RefreshIcons( r, p );
|
||||
}
|
||||
|
||||
void ScreenOptions::PositionCursors()
|
||||
{
|
||||
// Set the position of the cursor showing the current option the user is changing.
|
||||
|
||||
@@ -58,7 +58,6 @@ protected:
|
||||
void GetWidthXY( PlayerNumber pn, int iRow, int iChoiceOnRow, int &iWidthOut, int &iXOut, int &iYOut ) const;
|
||||
RString GetExplanationText( int iRow ) const;
|
||||
void RefreshIcons( int iRow, PlayerNumber pn );
|
||||
void RefreshAllIcons();
|
||||
void PositionCursors();
|
||||
void PositionRows();
|
||||
void TweenCursor( PlayerNumber pn );
|
||||
|
||||
Reference in New Issue
Block a user