/[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 126 by torben, Sun Dec 2 20:26:43 2007 UTC revision 128 by torben, Mon Dec 3 07:49:42 2007 UTC
# Line 15  inline int validColor(int val) Line 15  inline int validColor(int val)
15    
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            char check = 0;
19            char *rend,*gend,*bend;
20            rend = gend = bend = ✓
21    
         char *rend=0,*gend=0,*bend=0;  
22          int tmpred = strtol( rgb.substr(0,2).c_str(), &rend, 16);          int tmpred = strtol( rgb.substr(0,2).c_str(), &rend, 16);
23          int tmpgreen = strtol( rgb.substr(2,2).c_str(), &rend, 16);          int tmpgreen = strtol( rgb.substr(2,2).c_str(), &rend, 16);
24          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.126  
changed lines
  Added in v.128

  ViewVC Help
Powered by ViewVC 1.1.20