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

Comparing ray/src/px/ximage.c (file contents):
Revision 1.26 by greg, Wed Oct 17 15:15:52 1990 UTC vs.
Revision 1.27 by greg, Wed Nov 7 13:10:39 1990 UTC

# Line 681 | Line 681 | colormap  map;
681          register int  i, val;
682  
683          for (i = 0; i < 256; i++) {
684 <                val = pow(i/256.0, 1.0/gamcor) * 256.0;
684 >                val = pow((i+0.5)/256.0, 1.0/gamcor) * 256.0;
685                  map[0][i] = map[1][i] = map[2][i] = val;
686          }
687   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines