ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rxtmain.cpp
(Generate patch)

Comparing ray/src/rt/rxtmain.cpp (file contents):
Revision 2.3 by greg, Tue Apr 30 23:16:23 2024 UTC vs.
Revision 2.4 by greg, Wed May 1 22:06:09 2024 UTC

# Line 299 | Line 299 | main(int  argc, char  *argv[])
299                          goto badopt;
300                  }
301          }
302 +                                        /* set/check spectral sampling */
303 +        rval = setspectrsamp(CNDX, WLPART);
304 +        if (rval < 0)
305 +                error(USER, "unsupported spectral sampling");
306 +        if (out_prims != NULL) {
307 +                if (!rval)
308 +                        error(WARNING, "spectral range incompatible with color output");
309 +        } else if (NCSAMP == 3)
310 +                out_prims = stdprims;   /* 3 samples do not a spectrum make */
311                                          /* set up signal handling */
312          sigdie(SIGINT, "Interrupt");
313   #ifdef SIGHUP
# Line 355 | Line 364 | main(int  argc, char  *argv[])
364                  if ((outform == 'f') | (outform == 'd'))
365                          fputendian(stdout);
366                  fputformat(formstr(outform), stdout);
367 <                putchar('\n');
367 >                fputc('\n', stdout);    /* end of header */
368          }
369          rtrace(NULL, nproc);            /* trace rays */
370          quit(0);                        /* clean up & exit */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines