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

Comparing ray/src/common/tonemap.c (file contents):
Revision 3.34 by greg, Mon Feb 9 20:48:08 2009 UTC vs.
Revision 3.35 by greg, Mon Mar 7 20:49:19 2011 UTC

# Line 180 | Line 180 | double lum
180   #endif
181                  return(TM_NOBRT);
182          d = TM_BRTSCALE*log(lum);
183 <        if (d > 0.)
184 <                return((TMbright)(d+.5));
185 <        return((TMbright)(d-.5));
183 >        return((TMbright)(d + .5 - (d < 0.)));
184   }
185  
186  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines