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.63 by greg, Wed Jul 3 17:06:57 2024 UTC

# Line 298 | Line 298 | init(                  /* set up output file and start rpict */
298          sprintf(vrbuf, "%d", vres);
299          rpargv[rpargc++] = "-y"; rpargv[rpargc++] = vrbuf;
300          rpargv[rpargc++] = "-pa"; rpargv[rpargc++] = "0";
301 +        rpargv[rpargc++] = "-pm"; rpargv[rpargc++] = "0";
302          rpargv[rpargc++] = av[ac-1];
303          rpargv[rpargc] = NULL;
304                                          /* open output file */
# Line 566 | Line 567 | int    ypos
567          if (lseek(outfd, (off_t)fls.l_start, SEEK_SET) < 0)
568                  filerr("seek");
569          if (hmult == 1) {
570 <                if (writebuf(outfd, (char *)pbuf,
570 >                if (writebuf(outfd, pbuf,
571                                  vr*hr*sizeof(COLR)) != vr*hr*sizeof(COLR))
572                          filerr("write");
573          } else
574                  for (y = 0; y < vr; y++) {
575 <                        if (writebuf(outfd, (char *)(pbuf+y*hr),
575 >                        if (writebuf(outfd, pbuf+y*hr,
576                                          hr*sizeof(COLR)) != hr*sizeof(COLR))
577                                  filerr("write");
578                          if (y < vr-1 && lseek(outfd,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines