| 9 |
|
#include <stdio.h> |
| 10 |
|
#include <signal.h> |
| 11 |
|
#include <sys/types.h> |
| 12 |
< |
#include <sys/wait.h> |
| 12 |
> |
#ifndef NON_POSIX /* XXX need abstraction for process management */ |
| 13 |
> |
#include <sys/wait.h> |
| 14 |
> |
#endif |
| 15 |
|
|
| 16 |
|
#include "platform.h" |
| 17 |
< |
#include "rtio.h" |
| 16 |
< |
#include "rtmisc.h" |
| 17 |
> |
#include "standard.h" |
| 18 |
|
#include "color.h" |
| 19 |
|
#include "view.h" |
| 20 |
|
#include "rtprocess.h" |
| 248 |
|
/* compute piece size */ |
| 249 |
|
hres /= hmult; |
| 250 |
|
vres /= vmult; |
| 251 |
+ |
if (hres <= 0 || vres <= 0) { |
| 252 |
+ |
fprintf(stderr, "%s: illegal resolution/subdivision\n", progname); |
| 253 |
+ |
exit(1); |
| 254 |
+ |
} |
| 255 |
|
normaspect(viewaspect(&ourview)*hmult/vmult, &pixaspect, &hres, &vres); |
| 256 |
|
sprintf(hrbuf, "%d", hres); |
| 257 |
|
rpargv[rpargc++] = "-x"; rpargv[rpargc++] = hrbuf; |