From: Anders R. <ma...@us...> - 2003-08-26 15:29:17
|
Update of /cvsroot/planeshift/planeshift/src/client/paws In directory sc8-pr-cvs1:/tmp/cvs-serv7553/src/client/paws Modified Files: pawsprogressbar.cpp Log Message: Casted some float values to int before calling FindRGB. Compiler warning gcc. Index: pawsprogressbar.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/paws/pawsprogressbar.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** pawsprogressbar.cpp 17 Aug 2003 08:04:31 -0000 1.4 --- pawsprogressbar.cpp 25 Aug 2003 05:45:28 -0000 1.5 *************** *** 82,88 **** float pct = (float)i/screenFrame.Width(); ! currentColor = graphics2D->FindRGB(start_r + pct*diff_r, ! start_g + pct*diff_g, ! start_b + pct*diff_b); graphics2D->DrawBox ( screenFrame.xmin + i , screenFrame.ymin , --- 82,88 ---- float pct = (float)i/screenFrame.Width(); ! currentColor = graphics2D->FindRGB(start_r + (int)(pct*diff_r), ! start_g + (int)(pct*diff_g), ! start_b + (int)(pct*diff_b)); graphics2D->DrawBox ( screenFrame.xmin + i , screenFrame.ymin , |