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:
deveee 2013-09-15 20:09:21 +00:00
parent 402799a460
commit d4a224cd4e

View File

@ -762,20 +762,22 @@ void RaceResultGUI::displayOneEntry(unsigned int x, unsigned int y,
// First draw the icon // First draw the icon
// ------------------- // -------------------
if (!isSoccerMode)
if(ri->m_kart_icon && !isSoccerMode)
{ {
core::recti source_rect(core::vector2di(0,0), if(ri->m_kart_icon)
ri->m_kart_icon->getSize()); {
core::recti dest_rect(current_x, y, core::recti source_rect(core::vector2di(0,0),
current_x+m_width_icon, y+m_width_icon); ri->m_kart_icon->getSize());
irr_driver->getVideoDriver()->draw2DImage(ri->m_kart_icon, dest_rect, core::recti dest_rect(current_x, y,
source_rect, NULL, NULL, current_x+m_width_icon, y+m_width_icon);
true); 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 // Draw the name
// ------------- // -------------
if (!isSoccerMode) if (!isSoccerMode)