fix player name overlaps other text in PaneDisplay
This commit is contained in:
@@ -300,10 +300,11 @@ void PaneDisplay::SetContent( PaneContents c )
|
|||||||
|
|
||||||
int p;
|
int p;
|
||||||
|
|
||||||
/* If this is a high score name that was set during this game, use the player's name. */
|
/* If this is a high score name that was set during this game, use "YOU".
|
||||||
|
* The players name might be too long and overlap the label. */
|
||||||
for( p=0; p < NUM_PLAYERS; ++p )
|
for( p=0; p < NUM_PLAYERS; ++p )
|
||||||
if( str == RANKING_TO_FILL_IN_MARKER[p] )
|
if( str == RANKING_TO_FILL_IN_MARKER[p] )
|
||||||
str = PROFILEMAN->GetPlayerName( (PlayerNumber)p );
|
str = "YOU"; // TODO: move this to a metric //PROFILEMAN->GetPlayerName( (PlayerNumber)p );
|
||||||
|
|
||||||
m_textContents[c].SetText( str );
|
m_textContents[c].SetText( str );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user