# | Line 248 | Line 248 | init( /* set up output file and start rpict */ | |
---|---|---|
248 | /* compute piece size */ | |
249 | hres /= hmult; | |
250 | vres /= vmult; | |
251 | + | if (hres <= 0 || vres <= 0) { |
252 | + | fprintf(stderr, "%s: illegal resolution/subdivision\n"); |
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; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |