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.20 by greg, Sat Jan 14 20:25:51 2006 UTC vs.
Revision 3.21 by greg, Wed Jan 18 00:24:38 2006 UTC

# Line 182 | Line 182 | int    len
182                  returnErr(TM_E_TMINVAL);
183          if ((ls == NULL) | (scan == NULL) | (len < 0))
184                  returnErr(TM_E_ILLEGAL);
185 <        if (cs != TM_NOCHROM && fabs(curgam - tms->mongam) < .02) {
185 >        if (cs != TM_NOCHROM && fabs(tms->mongam - curgam) > .02) {
186                  curgam = tms->mongam;                   /* (re)build table */
187                  for (i = 1024; i--; )
188                          gamtab[i] = (int)(256.*pow((i+.5)/1024., 1./curgam));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines