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.59 by greg, Wed Jan 12 21:07:39 2022 UTC vs.
Revision 2.62 by greg, Mon Jun 3 18:55:51 2024 UTC

# Line 155 | Line 155 | main(
155                                          ++i;
156                                          continue;
157                                  }
158 +                                if (argv[i][2] == 'X') {
159 +                                        fprintf(stderr, "%s: -pXYZ unsupported\n",
160 +                                                argv[0]);
161 +                                        ++i;
162 +                                        continue;
163 +                                }
164 +                                if (argv[i][2] == 'c') {
165 +                                        fprintf(stderr, "%s: -pc unsupported\n",
166 +                                                argv[0]);
167 +                                        i += 9;
168 +                                        continue;
169 +                                }
170                                  if (argv[i][2] != 'a' || argv[i][3])
171                                          break;
172                                  pixaspect = atof(argv[++i]);
# Line 302 | Line 314 | init(                  /* set up output file and start rpict */
314                  fputnow(fp);
315                  if (pixaspect < .99 || pixaspect > 1.01)
316                          fputaspect(pixaspect, fp);
317 +                fputprims(stdprims, fp);
318                  fputformat(COLRFMT, fp);
319                  fputc('\n', fp);
320                  fprtresolu(hres*hmult, vres*vmult, fp);
# Line 553 | Line 566 | int    ypos
566          if (lseek(outfd, (off_t)fls.l_start, SEEK_SET) < 0)
567                  filerr("seek");
568          if (hmult == 1) {
569 <                if (writebuf(outfd, (char *)pbuf,
569 >                if (writebuf(outfd, pbuf,
570                                  vr*hr*sizeof(COLR)) != vr*hr*sizeof(COLR))
571                          filerr("write");
572          } else
573                  for (y = 0; y < vr; y++) {
574 <                        if (writebuf(outfd, (char *)(pbuf+y*hr),
574 >                        if (writebuf(outfd, pbuf+y*hr,
575                                          hr*sizeof(COLR)) != hr*sizeof(COLR))
576                                  filerr("write");
577                          if (y < vr-1 && lseek(outfd,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines