only used in one place (makes it hard to see exactly where PositionUnderlines itself is used)

This commit is contained in:
Glenn Maynard
2006-01-19 00:42:50 +00:00
parent 0b1ca16baf
commit b98fa213b5
2 changed files with 3 additions and 9 deletions
+3 -8
View File
@@ -375,13 +375,6 @@ void ScreenOptions::GetWidthXY( PlayerNumber pn, int iRow, int iChoiceOnRow, int
row.GetWidthXY( pn, iChoiceOnRow, iWidthOut, iXOut, iYOut );
}
void ScreenOptions::PositionAllUnderlines()
{
for( unsigned r=0; r<m_pRows.size(); r++ )
FOREACH_HumanPlayer( p )
m_pRows[r]->PositionUnderlines( p );
}
void ScreenOptions::PositionIcons()
{
for( unsigned i=0; i<m_pRows.size(); i++ ) // foreach options line
@@ -722,7 +715,9 @@ void ScreenOptions::AfterChangeValueOrRow( PlayerNumber pn )
PositionRows();
/* Do positioning. */
PositionAllUnderlines();
for( unsigned r=0; r<m_pRows.size(); r++ )
FOREACH_HumanPlayer( p )
m_pRows[r]->PositionUnderlines( p );
RefreshIcons( iCurRow, pn );
PositionIcons();
UpdateEnabledDisabled();