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.48 by greg, Tue Mar 11 02:21:47 2008 UTC vs.
Revision 2.52 by greg, Fri May 28 22:36:19 2010 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9   #include <stdio.h>
10   #include <signal.h>
11   #include <sys/types.h>
12 +
13 + #include "platform.h"
14   #ifndef NON_POSIX /* XXX need abstraction for process management */
15   #include <sys/wait.h>
16   #endif
17  
16 #include "platform.h"
18   #include "standard.h"
19   #include "color.h"
20   #include "view.h"
# Line 107 | Line 108 | main(
108                  while ((rval = expandarg(&argc, &argv, i)) > 0)
109                          ;
110                  if (rval < 0) {
111 <                        fprintf(stderr, "%s: cannot expand '%s'",
111 >                        fprintf(stderr, "%s: cannot expand '%s'\n",
112                                          argv[0], argv[i]);
113                          exit(1);
114                  }
# Line 135 | Line 136 | main(
136                                  }
137                                  break;
138                          case 'p':               /* pixel aspect ratio? */
139 +                                if (argv[i][2] == 'm') {
140 +                                        fprintf(stderr, "%s: -pm unsupported\n",
141 +                                                argv[0]);
142 +                                        ++i;
143 +                                        continue;
144 +                                }
145                                  if (argv[i][2] != 'a' || argv[i][3])
146                                          break;
147                                  pixaspect = atof(argv[++i]);
# Line 143 | Line 150 | main(
150                                  if (argv[i][2])
151                                          break;
152                                  timelim = atof(argv[++i])*3600. + .5;
153 <                                break;
153 >                                continue;
154                          case 'x':               /* overall x resolution */
155                                  if (argv[i][2])
156                                          break;
# Line 271 | Line 278 | init(                  /* set up output file and start rpict */
278                  fputs(VIEWSTR, fp);
279                  fprintview(&ourview, fp);
280                  putc('\n', fp);
281 +                fputnow(fp);
282                  if (pixaspect < .99 || pixaspect > 1.01)
283                          fputaspect(pixaspect, fp);
284                  fputformat(COLRFMT, fp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines