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

Comparing ray/src/rt/rv2.c (file contents):
Revision 1.31 by greg, Tue Oct 22 11:58:17 1991 UTC vs.
Revision 1.33 by greg, Mon Nov 11 17:42:19 1991 UTC

# Line 18 | Line 18 | static char SCCSid[] = "$SunId$ LBL";
18  
19   #include  "rpaint.h"
20  
21 + #include  "resolu.h"
22 +
23   #include  <ctype.h>
24  
25   #define  CTRL(c)        ('c'-'@')
# Line 142 | Line 144 | char  *s;
144          if (sscanf(s, "%s", buf) == 1) {        /* get parameters from a file */
145                  copystruct(&nv, &stdview);
146                  if ((fname = getpath(buf, NULL, 0)) == NULL ||
147 <                                (success = viewfile(fname, &nv, 0, 0)) == -1) {
147 >                                (success = viewfile(fname, &nv, NULL)) == -1) {
148                          sprintf(errmsg, "cannot open \"%s\"", buf);
149                          error(COMMAND, errmsg);
150                          return;
# Line 536 | Line 538 | char  *s;
538                          (*dev->comout)(buf);
539                  }
540                  (*dev->comin)(buf, NULL);
541 <                sprintf(buf, "with value (%.6g %.6g %.6g)",
541 >                sprintf(buf, "value (%.5g %.5g %.5g) (%.1fL)",
542                                  colval(thisray.rcol,RED),
543                                  colval(thisray.rcol,GRN),
544 <                                colval(thisray.rcol,BLU));
544 >                                colval(thisray.rcol,BLU),
545 >                                luminance(thisray.rcol));
546                  (*dev->comout)(buf);
547          }
548          (*dev->comin)(buf, NULL);
# Line 582 | Line 585 | char  *s;
585                  fputaspect(dev->pixaspect, fp);
586          fputformat(COLRFMT, fp);
587          putc('\n', fp);
588 <        fputresolu(YMAJOR|YDECR, hresolu, vresolu, fp);
588 >        fprtresolu(hresolu, vresolu, fp);
589  
590          scanline = (COLR *)malloc(hresolu*sizeof(COLR));
591          if (scanline == NULL) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines