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.32 by greg, Tue Oct 29 12:06:44 1991 UTC vs.
Revision 2.2 by greg, Thu Nov 21 10:10:30 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 339 | Line 341 | register union {int i; double d; COLOR C;}  *ptr;
341          case 'b':                       /* boolean */
342                  if (sscanf(str, "%1s", buf) != 1) {
343                          (*dev->comout)(dsc);
344 <                        sprintf(buf, " (%c): ", ptr->i ? 'y' : 'n');
344 >                        sprintf(buf, "? (%c): ", ptr->i ? 'y' : 'n');
345                          (*dev->comout)(buf);
346                          (*dev->comin)(buf, NULL);
347                          if (buf[0] == '\0' ||
# Line 583 | 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