Place team icon in the same position as kart icon in soccer mode result race.
Visually now everything looks good for me :-P git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13695 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
402799a460
commit
d4a224cd4e
@ -762,20 +762,22 @@ void RaceResultGUI::displayOneEntry(unsigned int x, unsigned int y,
|
||||
|
||||
// First draw the icon
|
||||
// -------------------
|
||||
|
||||
if(ri->m_kart_icon && !isSoccerMode)
|
||||
if (!isSoccerMode)
|
||||
{
|
||||
core::recti source_rect(core::vector2di(0,0),
|
||||
ri->m_kart_icon->getSize());
|
||||
core::recti dest_rect(current_x, y,
|
||||
current_x+m_width_icon, y+m_width_icon);
|
||||
irr_driver->getVideoDriver()->draw2DImage(ri->m_kart_icon, dest_rect,
|
||||
source_rect, NULL, NULL,
|
||||
true);
|
||||
if(ri->m_kart_icon)
|
||||
{
|
||||
core::recti source_rect(core::vector2di(0,0),
|
||||
ri->m_kart_icon->getSize());
|
||||
core::recti dest_rect(current_x, y,
|
||||
current_x+m_width_icon, y+m_width_icon);
|
||||
irr_driver->getVideoDriver()->draw2DImage(ri->m_kart_icon, dest_rect,
|
||||
source_rect, NULL, NULL,
|
||||
true);
|
||||
}
|
||||
|
||||
current_x += m_width_icon + m_width_column_space;
|
||||
}
|
||||
|
||||
current_x += m_width_icon + m_width_column_space;
|
||||
|
||||
// Draw the name
|
||||
// -------------
|
||||
if (!isSoccerMode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user