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

Comparing ray/src/px/pinterp.c (file contents):
Revision 2.6 by greg, Tue May 26 15:23:09 1992 UTC vs.
Revision 2.7 by greg, Fri Jun 19 12:54:41 1992 UTC

# Line 199 | Line 199 | char   *argv[];
199          }
200          normaspect(viewaspect(&ourview), &pixaspect, &hresolu, &vresolu);
201                                                  /* allocate frame */
202 <        ourpict = (COLR *)malloc(hresolu*vresolu*sizeof(COLR));
203 <        ourzbuf = (float *)calloc(hresolu*vresolu,sizeof(float));
202 >        ourpict = (COLR *)bmalloc(hresolu*vresolu*sizeof(COLR));
203 >        ourzbuf = (float *)bmalloc(hresolu*vresolu*sizeof(float));
204          if (ourpict == NULL || ourzbuf == NULL)
205                  syserror();
206 +        bzero((char *)ourzbuf, hresolu*vresolu*sizeof(float));
207                                                          /* get input */
208          for ( ; i < argc; i += 2)
209                  addpicture(argv[i], argv[i+1]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines