This commit is contained in:
Glenn Maynard
2006-02-03 09:41:54 +00:00
parent 2289df5c42
commit 082d3b570a
2 changed files with 3 additions and 9 deletions
+3 -8
View File
@@ -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.
-1
View File
@@ -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 );