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 1.17 by greg, Wed Jun 5 12:15:30 1991 UTC vs.
Revision 1.18 by greg, Mon Oct 28 08:10:18 1991 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1986 Regents of the University of California */
1 > /* Copyright (c) 1991 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 79 | Line 79 | char  **argv;
79          long  fpos;
80          double  outaspect = 0.0;
81          double  d;
82 <        int  i;
82 >        int  i, j;
83  
84          if (signal(SIGINT, quit) == SIG_IGN)
85                  signal(SIGINT, SIG_IGN);
# Line 196 | Line 196 | char  **argv;
196                          fprintf(stderr, "%s: unknown lamp type\n", lamptype);
197                          quit(1);
198                  }
199 <                colval(exposure,RED) /= lampcolor[0];
200 <                colval(exposure,GRN) /= lampcolor[1];
201 <                colval(exposure,BLU) /= lampcolor[2];
199 >                for (i = 0; i < 3; i++)
200 >                        if (lampcolor[i] > 1e-4)
201 >                                colval(exposure,i) /= lampcolor[i];
202                  freelamps();
203          }
204                                          /* open input file */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines