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

Comparing ray/src/px/pfilt.c (file contents):
Revision 2.40 by greg, Tue Jun 3 21:31:51 2025 UTC vs.
Revision 2.42 by greg, Wed Jul 2 16:54:44 2025 UTC

# Line 13 | Line 13 | static const char RCSid[] = "$Id$";
13   #include  <signal.h>
14   #include  "pfilt.h"
15   #include  "platform.h"
16 #include  "paths.h"
16   #include  "view.h"
17  
18   #define  FEQ(a,b)       ((a) >= .98*(b) && (a) <= 1.02*(b))
# Line 540 | Line 539 | scan2init(void)                        /* prepare scanline arrays */
539                                          /* record pixel aspect ratio */
540          if (!correctaspect) {
541                  d = order & YMAJOR ? x_c/y_r : y_r/x_c ;
542 <                if (!FEQ(d,1.0))
542 >                if ((d < 0.995) | (d > 1.005))
543                          fputaspect(d, stdout);
544          }
545                                          /* record exposure */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines