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

Comparing ray/src/rt/data.c (file contents):
Revision 2.3 by greg, Mon Sep 21 12:07:42 1992 UTC vs.
Revision 2.4 by greg, Thu Nov 12 10:11:51 1992 UTC

# Line 139 | Line 139 | scanerr:
139   }
140  
141  
142 static double  inpaspect;               /* aspect ratio of input picture */
143
142   static
143 < headaspect(s)                           /* check string for aspect ratio */
143 > headaspect(s, iap)                      /* check string for aspect ratio */
144   char  *s;
145 + double  *iap;
146   {
147          if (isaspect(s))
148 <                inpaspect *= aspectval(s);
148 >                *iap *= aspectval(s);
149   }
150  
151  
# Line 155 | Line 154 | getpict(pname)                         /* get picture pname */
154   char  *pname;
155   {
156          extern char  *libpath;
157 +        double  inpaspect;
158          char  *pfname;
159          FILE  *fp;
160          COLOR  *scanin;
# Line 189 | Line 189 | char  *pname;
189   #endif
190                                                  /* get dimensions */
191          inpaspect = 1.0;
192 <        getheader(fp, headaspect);
192 >        getheader(fp, headaspect, &inpaspect);
193          if (!fgetsresolu(&inpres, fp))
194                  goto readerr;
195          for (i = 0; i < 3; i++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines