ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/spec_rgb.c
(Generate patch)

Comparing ray/src/common/spec_rgb.c (file contents):
Revision 2.8 by greg, Fri Jan 31 12:58:39 1997 UTC vs.
Revision 2.9 by greg, Thu Apr 17 15:42:02 1997 UTC

# Line 170 | Line 170 | colortrans(c2, mat, c1)                /* convert c1 by mat and put
170   register COLORMAT  mat;
171   register COLOR  c1, c2;
172   {
173 <        c2[0] = mat[0][0]*c1[0] + mat[0][1]*c1[1] + mat[0][2]*c1[2];
174 <        c2[1] = mat[1][0]*c1[0] + mat[1][1]*c1[1] + mat[1][2]*c1[2];
175 <        c2[2] = mat[2][0]*c1[0] + mat[2][1]*c1[1] + mat[2][2]*c1[2];
173 >        COLOR   cout;
174 >
175 >        cout[0] = mat[0][0]*c1[0] + mat[0][1]*c1[1] + mat[0][2]*c1[2];
176 >        cout[1] = mat[1][0]*c1[0] + mat[1][1]*c1[1] + mat[1][2]*c1[2];
177 >        cout[2] = mat[2][0]*c1[0] + mat[2][1]*c1[1] + mat[2][2]*c1[2];
178 >
179 >        copycolor(c2, cout);
180   }
181  
182  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines