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.15 by greg, Tue Sep 5 21:54:32 2006 UTC vs.
Revision 2.16 by greg, Mon Oct 8 18:07:55 2007 UTC

# Line 264 | Line 264 | register RGBPRIMS  pr
264  
265          if (pr == stdprims) {   /* can use xyz2rgbmat */
266                  cpcolormat(mat, xyz2rgbmat);
267 <                return;
267 >                return(1);
268          }
269          if (CEQ(pr[WHT][CIEX],0.) | CEQ(pr[WHT][CIEY],0.))
270                  return(0);
# Line 324 | Line 324 | register RGBPRIMS  pr
324  
325          if (pr == stdprims) {   /* can use rgb2xyzmat */
326                  cpcolormat(mat, rgb2xyzmat);
327 <                return;
327 >                return(1);
328          }
329          if (CEQ(pr[WHT][CIEX],0.) | CEQ(pr[WHT][CIEY],0.))
330                  return(0);
# Line 371 | Line 371 | RGBPRIMS  pr2
371                  mat[0][0] = mat[1][1] = mat[2][2] = 1.0;
372                  mat[0][1] = mat[0][2] = mat[1][0] =
373                  mat[1][2] = mat[2][0] = mat[2][1] = 0.0;
374 <                return;
374 >                return(1);
375          }
376          if (!comprgb2xyzmat(pr1toxyz, pr1))
377                  return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines