--- ray/src/common/spec_rgb.c 1990/12/08 09:29:10 1.2 +++ ray/src/common/spec_rgb.c 1993/03/05 15:14:04 2.2 @@ -40,16 +40,16 @@ static BYTE chroma[3][NINC] = { }; #ifdef NTSC -static float xyz2rgbmat[3][3] = { /* XYZ to RGB (NTSC */ - 1.73, -.48, -.26, - -.81, 1.65, -.02, - .08, -.17, 1.28, +static float xyz2rgbmat[3][3] = { /* XYZ to RGB (NTSC) */ + {1.73, -.48, -.26}, + {-.81, 1.65, -.02}, + {.08, -.17, 1.28} }; #else static float xyz2rgbmat[3][3] = { /* XYZ to RGB (color monitor) */ - 2.739, -1.145, -.424, - -1.119, 2.029, .033, - .138, -.333, 1.105, + {2.739, -1.145, -.424}, + {-1.119, 2.029, .033}, + {.138, -.333, 1.105} }; #endif @@ -100,7 +100,7 @@ int s, e; /* starting and ending wavelengths */ } -cie_rgb(rgbcolor, ciecolor) /* convert CIE to RGB (NTSC) */ +cie_rgb(rgbcolor, ciecolor) /* convert CIE to RGB */ register COLOR rgbcolor, ciecolor; { register int i;