/[H9]/trunk/tntnet/dynamic/bullet.ecpp
ViewVC logotype

Diff of /trunk/tntnet/dynamic/bullet.ecpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 125 by torben, Sat Dec 1 18:44:36 2007 UTC revision 126 by torben, Sun Dec 2 20:26:43 2007 UTC
# Line 16  inline int validColor(int val) Line 16  inline int validColor(int val)
16  inline void decodeRGBString(const std::string& rgb, int& red, int& green, int& blue)  inline void decodeRGBString(const std::string& rgb, int& red, int& green, int& blue)
17  {  {
18    
19          char *rend,*gend,*bend;          char *rend=0,*gend=0,*bend=0;
20          int tmpred = strtol( rgb.substr(0,2).c_str(), &rend, 16);          int tmpred = strtol( rgb.substr(0,2).c_str(), &rend, 16);
21          int tmpgreen = strtol( rgb.substr(2,2).c_str(), &rend, 16);          int tmpgreen = strtol( rgb.substr(2,2).c_str(), &rend, 16);
22          int tmpblue = strtol( rgb.substr(4,2).c_str(), &rend, 16);          int tmpblue = strtol( rgb.substr(4,2).c_str(), &rend, 16);

Legend:
Removed from v.125  
changed lines
  Added in v.126

  ViewVC Help
Powered by ViewVC 1.1.20