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 |
|
|