# | 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); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |