--- ray/src/util/rpiece.c 1995/11/30 14:21:48 2.32 +++ ray/src/util/rpiece.c 1997/07/29 11:27:49 2.35 @@ -47,6 +47,11 @@ char *argv[]; #define guard_io() 0 #define unguard() 0 #endif + +#ifndef linux +extern char *sys_errlist[]; +#endif + /* rpict command */ char *rpargv[128] = {"rpict", "-S", "1"}; int rpargc = 3; @@ -119,7 +124,7 @@ char *argv[]; case 'p': /* pixel aspect ratio? */ if (argv[i][2] != 'a' || argv[i][3]) break; - pixaspect = atof(argv[i+1]); + pixaspect = atof(argv[++i]); continue; case 'T': /* time limit (hours) */ if (argv[i][2]) @@ -193,7 +198,6 @@ int fd; int ltyp; { static struct flock fls; /* static so initialized to zeroes */ - extern char *sys_errlist[]; fls.l_type = ltyp; if (fcntl(fd, F_SETLKW, &fls) < 0) { @@ -433,8 +437,8 @@ rpiece() /* render picture piece by piece */ } /* render each piece */ while (nextpiece(&xorg, &yorg)) { - pview.hoff = ourview.hoff + xorg - 0.5*(hmult-1); - pview.voff = ourview.voff + yorg - 0.5*(vmult-1); + pview.hoff = ourview.hoff*hmult + xorg - 0.5*(hmult-1); + pview.voff = ourview.voff*vmult + yorg - 0.5*(vmult-1); fputs(VIEWSTR, torp); fprintview(&pview, torp); putc('\n', torp); @@ -548,8 +552,6 @@ int xpos, ypos; filerr(t) /* report file error and exit */ char *t; { - extern char *sys_errlist[]; - fprintf(stderr, "%s: %s error on file \"%s\": %s\n", progname, t, outfile, sys_errlist[errno]); _exit(1);