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.11 by greg, Wed Nov 7 13:10:36 1990 UTC vs.
Revision 1.13 by greg, Mon Mar 18 09:35:06 1991 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 410 | Line 411 | XKeyPressedEvent  *ekey;
411                          sprintf(buf, "%.3f", intens(cval)/exposure);
412                          break;
413                  case 'l':                               /* luminance */
414 <                        sprintf(buf, "%.0fn", bright(cval)*683.0/exposure);
414 >                        sprintf(buf, "%.0fn", luminance(cval)/exposure);
415                          break;
416                  case 'c':                               /* color */
417                          comp = pow(2.0, (double)scale);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines