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

Comparing ray/src/util/rpiece.c (file contents):
Revision 2.32 by greg, Thu Nov 30 14:21:48 1995 UTC vs.
Revision 2.35 by gregl, Tue Jul 29 11:27:49 1997 UTC

# Line 47 | Line 47 | char *argv[];
47   #define guard_io()      0
48   #define unguard()       0
49   #endif
50 +
51 + #ifndef linux
52 + extern char  *sys_errlist[];
53 + #endif
54 +
55                                  /* rpict command */
56   char  *rpargv[128] = {"rpict", "-S", "1"};
57   int  rpargc = 3;
# Line 119 | Line 124 | char  *argv[];
124                          case 'p':               /* pixel aspect ratio? */
125                                  if (argv[i][2] != 'a' || argv[i][3])
126                                          break;
127 <                                pixaspect = atof(argv[i+1]);
127 >                                pixaspect = atof(argv[++i]);
128                                  continue;
129                          case 'T':               /* time limit (hours) */
130                                  if (argv[i][2])
# Line 193 | Line 198 | int  fd;
198   int  ltyp;
199   {
200          static struct flock  fls;       /* static so initialized to zeroes */
196        extern char  *sys_errlist[];
201  
202          fls.l_type = ltyp;
203          if (fcntl(fd, F_SETLKW, &fls) < 0) {
# Line 433 | Line 437 | rpiece()                       /* render picture piece by piece */
437          }
438                                          /* render each piece */
439          while (nextpiece(&xorg, &yorg)) {
440 <                pview.hoff = ourview.hoff + xorg - 0.5*(hmult-1);
441 <                pview.voff = ourview.voff + yorg - 0.5*(vmult-1);
440 >                pview.hoff = ourview.hoff*hmult + xorg - 0.5*(hmult-1);
441 >                pview.voff = ourview.voff*vmult + yorg - 0.5*(vmult-1);
442                  fputs(VIEWSTR, torp);
443                  fprintview(&pview, torp);
444                  putc('\n', torp);
# Line 548 | Line 552 | int  xpos, ypos;
552   filerr(t)                       /* report file error and exit */
553   char  *t;
554   {
551        extern char  *sys_errlist[];
552
555          fprintf(stderr, "%s: %s error on file \"%s\": %s\n",
556                          progname, t, outfile, sys_errlist[errno]);
557          _exit(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines