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

Comparing ray/src/px/normtiff.c (file contents):
Revision 3.9 by greg, Tue Jun 14 22:23:31 2005 UTC vs.
Revision 3.10 by greg, Tue Sep 26 12:26:02 2006 UTC

# Line 211 | Line 211 | tmap_picture(                  /* tone map Radiance picture */
211   )
212   {
213          uint16  orient;
214 +        double  paspect = (pp->rs.rt & YMAJOR) ? pp->pa : 1./pp->pa;
215          int     xsiz, ysiz;
216          BYTE    *pix;
217                                          /* read and tone map picture */
# Line 224 | Line 225 | tmap_picture(                  /* tone map Radiance picture */
225          orient++;
226                                          /* put out our image */
227          if (putimage(orient, (uint32)xsiz, (uint32)ysiz,
228 <                        72., 72./pp->pa, 2, pix) != 0)
228 >                        72., 72./paspect, 2, pix) != 0)
229                  return(-1);
230                                          /* free data and we're done */
231          free((void *)pix);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines