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

Comparing ray/src/px/x11image.c (file contents):
Revision 1.10 by greg, Sun Oct 21 10:48:17 1990 UTC vs.
Revision 1.11 by greg, Wed Nov 7 13:10:36 1990 UTC

# Line 734 | Line 734 | colormap  map;
734          register int  i, val;
735  
736          for (i = 0; i < 256; i++) {
737 <                val = pow(i/256.0, 1.0/gamcor) * 256.0;
737 >                val = pow((i+0.5)/256.0, 1.0/gamcor) * 256.0;
738                  map[0][i] = map[1][i] = map[2][i] = val;
739          }
740   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines