only used in one place (makes it hard to see exactly where PositionUnderlines itself is used)
This commit is contained in:
@@ -375,13 +375,6 @@ void ScreenOptions::GetWidthXY( PlayerNumber pn, int iRow, int iChoiceOnRow, int
|
|||||||
row.GetWidthXY( pn, iChoiceOnRow, iWidthOut, iXOut, iYOut );
|
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()
|
void ScreenOptions::PositionIcons()
|
||||||
{
|
{
|
||||||
for( unsigned i=0; i<m_pRows.size(); i++ ) // foreach options line
|
for( unsigned i=0; i<m_pRows.size(); i++ ) // foreach options line
|
||||||
@@ -722,7 +715,9 @@ void ScreenOptions::AfterChangeValueOrRow( PlayerNumber pn )
|
|||||||
PositionRows();
|
PositionRows();
|
||||||
|
|
||||||
/* Do positioning. */
|
/* Do positioning. */
|
||||||
PositionAllUnderlines();
|
for( unsigned r=0; r<m_pRows.size(); r++ )
|
||||||
|
FOREACH_HumanPlayer( p )
|
||||||
|
m_pRows[r]->PositionUnderlines( p );
|
||||||
RefreshIcons( iCurRow, pn );
|
RefreshIcons( iCurRow, pn );
|
||||||
PositionIcons();
|
PositionIcons();
|
||||||
UpdateEnabledDisabled();
|
UpdateEnabledDisabled();
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ protected:
|
|||||||
|
|
||||||
void GetWidthXY( PlayerNumber pn, int iRow, int iChoiceOnRow, int &iWidthOut, int &iXOut, int &iYOut ) const;
|
void GetWidthXY( PlayerNumber pn, int iRow, int iChoiceOnRow, int &iWidthOut, int &iXOut, int &iYOut ) const;
|
||||||
CString GetExplanationText( int iRow ) const;
|
CString GetExplanationText( int iRow ) const;
|
||||||
void PositionAllUnderlines();
|
|
||||||
void PositionIcons();
|
void PositionIcons();
|
||||||
void RefreshIcons( int iRow, PlayerNumber pn );
|
void RefreshIcons( int iRow, PlayerNumber pn );
|
||||||
void RefreshAllIcons();
|
void RefreshAllIcons();
|
||||||
|
|||||||
Reference in New Issue
Block a user