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.13 by greg, Sat Dec 8 10:14:33 1990 UTC vs.
Revision 1.14 by greg, Sat Dec 8 13:23:47 1990 UTC

# Line 178 | Line 178 | char  **argv;
178                          }
179                  else
180                          break;
181 <                        
181 >                                        /* get lamp data (if necessary) */
182 >        if (lamptype != NULL) {
183 >                if (loadlamps(lampdat) < 0)
184 >                        quit(1);
185 >                if ((lampcolor = matchlamp(lamptype)) == NULL) {
186 >                        fprintf(stderr, "%s: unknown lamp type\n", lamptype);
187 >                        quit(1);
188 >                }
189 >                colval(exposure,RED) /= lampcolor[0];
190 >                colval(exposure,GRN) /= lampcolor[1];
191 >                colval(exposure,BLU) /= lampcolor[2];
192 >                freelamps();
193 >        }
194 >                                        /* open input file */
195          if (i == argc) {
196                  if (singlepass)
197                          fin = stdin;
# Line 204 | Line 217 | char  **argv;
217          } else {
218                  fprintf(stderr, "%s: bad # file arguments\n", progname);
219                  quit(1);
207        }
208                                        /* get lamp data (if necessary) */
209        if (lamptype != NULL) {
210                if (loadlamps(lampdat) < 0)
211                        quit(1);
212                if ((lampcolor = matchlamp(lamptype)) == NULL) {
213                        fprintf(stderr, "%s: unknown lamp type\n", lamptype);
214                        quit(1);
215                }
216                colval(exposure,RED) /= lampcolor[0];
217                colval(exposure,GRN) /= lampcolor[1];
218                colval(exposure,BLU) /= lampcolor[2];
219                freelamps();
220          }
221                                          /* get header */
222          getheader(fin, headline);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines