simplify
This commit is contained in:
@@ -269,7 +269,7 @@ void ScreenSelectDifficultyEX::SetAllPlayersSelection( int iChoice, bool bSwitch
|
||||
m_sprPicture[p].Load( THEME->GetPathToG(sPictureFile) );
|
||||
|
||||
int iDiffIndex = GetSelectionIndex((PlayerNumber)p);
|
||||
m_sprHighlight[p].SetBarWidth( int(20 + m_sprDifficulty[iDiffIndex].GetZoomedWidth() + (m_textDifficultyText[iDiffIndex].GetWidestLineWidthInSourcePixels() / 2)) );
|
||||
m_sprHighlight[p].SetBarWidth( int(20 + m_sprDifficulty[iDiffIndex].GetZoomedWidth() + (m_textDifficultyText[iDiffIndex].GetZoomedWidth() / 2)) );
|
||||
m_sprHighlight[p].SetXY( DIFFICULTYSPRITE_X(m_iChoice[p]) + 35, DIFFICULTYSPRITE_Y(m_iChoice[p]) );
|
||||
}
|
||||
|
||||
@@ -311,7 +311,7 @@ void ScreenSelectDifficultyEX::Change( PlayerNumber pn, int iNewChoice )
|
||||
m_sprPicture[p].Load( THEME->GetPathToG(sPictureFile) );
|
||||
|
||||
int iDiffIndex = GetSelectionIndex((PlayerNumber)p);
|
||||
m_sprHighlight[p].SetBarWidth( int( 20 + m_sprDifficulty[iDiffIndex].GetZoomedWidth() + (m_textDifficultyText[iDiffIndex].GetWidestLineWidthInSourcePixels() /2 )) );
|
||||
m_sprHighlight[p].SetBarWidth( int( 20 + m_sprDifficulty[iDiffIndex].GetZoomedWidth() + (m_textDifficultyText[iDiffIndex].GetZoomedWidth() /2 )) );
|
||||
m_sprHighlight[p].SetXY( DIFFICULTYSPRITE_X(m_iChoice[p]) + 30, DIFFICULTYSPRITE_Y(m_iChoice[p]) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user