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.12 by greg, Fri Dec 21 17:20:11 1990 UTC

# Line 240 | Line 240 | init()                 /* get data and open window */
240          if (geometry != NULL) {
241                  bzero((char *)&oursizhints, sizeof(oursizhints));
242                  i = XParseGeometry(geometry, &oursizhints.x, &oursizhints.y,
243 <                                &oursizhints.width, &oursizhints.height);
243 >                                (unsigned *)&oursizhints.width,
244 >                                (unsigned *)&oursizhints.height);
245                  if ((i&(WidthValue|HeightValue)) == (WidthValue|HeightValue))
246                          oursizhints.flags |= USSize;
247                  else {
# Line 734 | Line 735 | colormap  map;
735          register int  i, val;
736  
737          for (i = 0; i < 256; i++) {
738 <                val = pow(i/256.0, 1.0/gamcor) * 256.0;
738 >                val = pow((i+0.5)/256.0, 1.0/gamcor) * 256.0;
739                  map[0][i] = map[1][i] = map[2][i] = val;
740          }
741   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines