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 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 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