ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pcond.c
(Generate patch)

Comparing ray/src/px/pcond.c (file contents):
Revision 3.14 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 3.16 by schorsch, Mon Jul 21 22:30:18 2003 UTC

# Line 6 | Line 6 | static const char      RCSid[] = "$Id$";
6   *  Added white-balance adjustment 10/01 (GW).
7   */
8  
9 + #include "platform.h"
10   #include "pcond.h"
11  
12  
# Line 162 | Line 163 | char   *argv[];
163                                          /* open output file */
164          if (i+2 == argc && freopen(argv[i+1], "w", stdout) == NULL)
165                  syserror(argv[i+1]);
166 < #ifdef MSDOS
167 <        setmode(fileno(infp), O_BINARY);
167 <        setmode(fileno(stdout), O_BINARY);
168 < #endif
166 >        SET_FILE_BINARY(infp);
167 >        SET_FILE_BINARY(stdout);
168          getahead();                     /* load input header */
169          printargs(argc, argv, stdout);  /* add to output header */
170          if (mbcalfile == NULL & outprims != stdprims)
# Line 244 | Line 243 | getahead()                     /* load picture header */
243                  exit(1);
244          }
245          if (!gotview || ourview.type == VT_PAR) {
246 <                copystruct(&ourview, &stdview);
246 >                ourview = stdview;
247                  ourview.type = VT_PER;
248                  if (pixaspect*inpres.yr < inpres.xr) {
249                          ourview.horiz = 40.0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines