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

Comparing ray/src/px/aedimage.c (file contents):
Revision 1.7 by greg, Fri Jan 26 08:17:29 1990 UTC vs.
Revision 1.8 by greg, Wed Nov 7 13:10:27 1990 UTC

# Line 515 | Line 515 | colormap  map;
515          register int  i, val;
516  
517          for (i = 0; i < 256; i++) {
518 <                val = pow(i/256.0, 1.0/GAMMA) * 256.0;
518 >                val = pow((i+0.5)/256.0, 1.0/GAMMA) * 256.0;
519                  map[0][i] = map[1][i] = map[2][i] = val;
520          }
521   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines