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

Comparing ray/src/common/image.c (file contents):
Revision 1.9 by greg, Tue Jan 16 16:21:07 1990 UTC vs.
Revision 1.10 by greg, Thu Sep 13 08:34:15 1990 UTC

# Line 73 | Line 73 | int  *xp, *yp;                 /* x and y resolution in (or out if *
73          if (*ap <= FTINY)
74                  *ap = va * *xp / *yp;           /* compute pixel aspect */
75          else if (va * *xp > *ap * *yp)
76 <                *xp = *yp / va * *ap;           /* reduce x resolution */
76 >                *xp = *yp / va * *ap + .5;      /* reduce x resolution */
77          else
78 <                *yp = *xp * va / *ap;           /* reduce y resolution */
78 >                *yp = *xp * va / *ap + .5;      /* reduce y resolution */
79   }
80  
81  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines