diff --git a/src/states_screens/race_gui.cpp b/src/states_screens/race_gui.cpp index 28fdcf325..e253931de 100644 --- a/src/states_screens/race_gui.cpp +++ b/src/states_screens/race_gui.cpp @@ -35,6 +35,8 @@ #include "irrlicht.h" using namespace irr; +const video::SColor white(255,255,255,255); + RaceGUI::RaceGUI() { // FIXME: translation problem @@ -215,7 +217,7 @@ void RaceGUI::drawPlayerIcons (const KartIconDisplayInfo* info) const core::rect pos(x, y, x+w, y+w); const core::rect rect(core::position2d(0,0), icon->getOriginalSize()); irr_driver->getVideoDriver()->draw2DImage(icon, pos, rect, 0, - &video::SColor(255,255,255,255), true); + &white, true); } // next kart @@ -246,7 +248,7 @@ void RaceGUI::drawPowerupIcons(Kart* player_kart, int offset_x, { core::rect pos(x1+i*30, y1, x1+i*30+nSize, y1+nSize); irr_driver->getVideoDriver()->draw2DImage(t, pos, rect, 0, - &video::SColor(255,255,255,255), + &white, true); } // for i } // drawPowerupIcons