@@ -1425,19 +1425,20 @@ void RaceResultGUI::displayOneEntry(unsigned int x, unsigned int y,
1425
1425
}
1426
1426
1427
1427
// Draw kart color circle if kart has custom color
1428
- if (m_icons_frame && ri->m_kart_color > 0.0 )
1428
+ video::ITexture* icons_frame = irr_driver->getTexture (" icons-frame.png" );
1429
+ if (ri->m_kart_color > 0.0 )
1429
1430
{
1430
1431
const video::SColorHSL kart_colorHSL (ri->m_kart_color * 360.0 , 80.0 , 50.0 );
1431
1432
video::SColorf kart_colorf;
1432
1433
kart_colorHSL.toRGB (kart_colorf);
1433
1434
const video::SColor kart_color = kart_colorf.toSColor ();
1434
1435
const video::SColor colors[4 ] = {kart_color, kart_color, kart_color, kart_color};
1435
- const core::recti source_rect (core::vector2di (0 , 0 ), m_icons_frame ->getSize ());
1436
+ const core::recti source_rect (core::vector2di (0 , 0 ), icons_frame ->getSize ());
1436
1437
// make frame bigger than icon to make color visible for all cases
1437
1438
const int extra_width = std::max ((unsigned int )5 , m_width_icon / 8 );
1438
1439
core::recti dest_rect (current_x - extra_width, y - extra_width,
1439
1440
current_x + m_width_icon + extra_width, y + m_width_icon + extra_width);
1440
- draw2DImage (m_icons_frame , dest_rect, source_rect, NULL , colors, true );
1441
+ draw2DImage (icons_frame , dest_rect, source_rect, NULL , colors, true );
1441
1442
}
1442
1443
// First draw the icon
1443
1444
// -------------------
0 commit comments