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

Comparing ray/src/common/ccyrgb.c (file contents):
Revision 3.1 by greg, Fri Feb 18 00:40:25 2011 UTC vs.
Revision 3.3 by greg, Thu May 17 17:10:23 2012 UTC

# Line 38 | Line 38 | rgb2ccy(COLOR cin, C_COLOR *cout)
38          *cout = c_dfcolor;
39          df = xyz[CIEX] + xyz[CIEY] + xyz[CIEZ];
40          if (df <= .0)
41 <                return;
41 >                return(.0);
42          df = 1./df;
43          cout->cx = xyz[CIEX]*df;
44          cout->cy = xyz[CIEZ]*df;
45          cout->flags = (C_CSXY|C_CDXY);
46 +        cout->clock++;
47  
48          return(xyz[CIEY]);
49   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines