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.61 by greg, Fri Nov 17 20:36:50 2023 UTC vs.
Revision 2.64 by greg, Wed Jul 3 17:18:17 2024 UTC

# Line 171 | Line 171 | main(
171                                          break;
172                                  pixaspect = atof(argv[++i]);
173                                  continue;
174 +                        case 'S':
175 +                                fprintf(stderr, "%s: -S unsupported\n", argv[0]);
176 +                                i++;
177 +                                continue;
178                          case 'T':               /* time limit (hours) */
179                                  if (argv[i][2])
180                                          break;
# Line 298 | Line 302 | init(                  /* set up output file and start rpict */
302          sprintf(vrbuf, "%d", vres);
303          rpargv[rpargc++] = "-y"; rpargv[rpargc++] = vrbuf;
304          rpargv[rpargc++] = "-pa"; rpargv[rpargc++] = "0";
305 +        rpargv[rpargc++] = "-pm"; rpargv[rpargc++] = "0";
306          rpargv[rpargc++] = av[ac-1];
307          rpargv[rpargc] = NULL;
308                                          /* open output file */
# Line 566 | Line 571 | int    ypos
571          if (lseek(outfd, (off_t)fls.l_start, SEEK_SET) < 0)
572                  filerr("seek");
573          if (hmult == 1) {
574 <                if (writebuf(outfd, (char *)pbuf,
574 >                if (writebuf(outfd, pbuf,
575                                  vr*hr*sizeof(COLR)) != vr*hr*sizeof(COLR))
576                          filerr("write");
577          } else
578                  for (y = 0; y < vr; y++) {
579 <                        if (writebuf(outfd, (char *)(pbuf+y*hr),
579 >                        if (writebuf(outfd, pbuf+y*hr,
580                                          hr*sizeof(COLR)) != hr*sizeof(COLR))
581                                  filerr("write");
582                          if (y < vr-1 && lseek(outfd,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines