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.16 by greg, Wed Nov 29 17:42:27 1989 UTC vs.
Revision 1.17 by greg, Fri Dec 1 15:50:26 1989 UTC

# Line 384 | Line 384 | XKeyEvent  *ekey;
384                  switch (*cp) {
385                  case '\n':
386                  case '\r':                              /* radiance */
387 <                        sprintf(buf, "%-3g", intens(cval)/exposure);
387 >                        sprintf(buf, "%.3f", intens(cval)/exposure);
388                          break;
389                  case 'l':                               /* luminance */
390 <                        sprintf(buf, "%-3gn", bright(cval)*683.0/exposure);
390 >                        sprintf(buf, "%.0fn", bright(cval)*683.0/exposure);
391                          break;
392                  case 'c':                               /* color */
393                          comp = pow(2.0, (double)scale);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines