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

Comparing ray/src/util/radcompare.c (file contents):
Revision 2.16 by greg, Fri Oct 26 23:45:56 2018 UTC vs.
Revision 2.17 by greg, Sat Nov 17 20:22:17 2018 UTC

# Line 199 | Line 199 | color_check(COLOR c1, COLOR c2)
199   {
200          int     p;
201  
202 <        if (!real_check(colval(c1,RED)+colval(c1,GRN)+colval(c1,BLU)*(1./3.),
203 <                        colval(c2,RED)+colval(c2,GRN)+colval(c2,BLU))*(1./3.))
202 >        if (!real_check((colval(c1,RED)+colval(c1,GRN)+colval(c1,BLU))*(1./3.),
203 >                        (colval(c2,RED)+colval(c2,GRN)+colval(c2,BLU))*(1./3.)))
204                  return(0);
205  
206          p = (colval(c1,GRN) > colval(c1,RED)) ? GRN : RED;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines