Use smaller distance between rows if there is no place for all entries.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14278 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
3da81e3c8d
commit
612d53bfe7
@ -920,7 +920,11 @@ void RaceResultGUI::displaySoccerResults()
|
||||
resultText.append(StringUtils::timeToString(scoreTimes.at(i)).c_str());
|
||||
rect = m_font->getDimension(resultText.c_str());
|
||||
|
||||
currY += rect.Height;
|
||||
if(height-prevY < ((short)scorers.size()+1)*(short)rect.Height)
|
||||
currY += (height-prevY)/((short)scorers.size()+1);
|
||||
else
|
||||
currY += rect.Height;
|
||||
|
||||
if(currY > height) break;
|
||||
|
||||
pos = core::rect<s32>(currX,currY,currX,currY);
|
||||
@ -947,7 +951,11 @@ void RaceResultGUI::displaySoccerResults()
|
||||
resultText.append(StringUtils::timeToString(scoreTimes.at(i)).c_str());
|
||||
rect = m_font->getDimension(resultText.c_str());
|
||||
|
||||
currY += rect.Height;
|
||||
if(height-prevY < ((short)scorers.size()+1)*(short)rect.Height)
|
||||
currY += (height-prevY)/((short)scorers.size()+1);
|
||||
else
|
||||
currY += rect.Height;
|
||||
|
||||
if(currY > height) break;
|
||||
|
||||
pos = core::rect<s32>(currX,currY,currX,currY);
|
||||
|
Loading…
Reference in New Issue
Block a user