From d1b5f001cbafa5f23ece1eca3c1479db6cf0a09d Mon Sep 17 00:00:00 2001 From: auria Date: Tue, 21 Jul 2009 01:35:18 +0000 Subject: [PATCH] Fixed back warnings (don't remove them this time hiker ;) git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3779 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/states_screens/race_gui.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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