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.45 by schorsch, Sat Oct 23 18:55:53 2004 UTC vs.
Revision 2.46 by greg, Wed Aug 22 17:49:54 2007 UTC

# 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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines