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

Comparing ray/src/px/pcomb.c (file contents):
Revision 1.12 by greg, Tue Apr 23 15:49:53 1991 UTC vs.
Revision 1.13 by greg, Wed May 22 14:56:51 1991 UTC

# Line 241 | Line 241 | combine()                      /* combine pictures */
241                  } else {
242                      for (j = 0; j < 3; j++) {
243                          if (coldef[j] != NULL) {
244 <                                colval(scanout[xpos],j) = evalue(coldef[j]);
244 >                                d = evalue(coldef[j]);
245                          } else {
246 <                            colval(scanout[xpos],j) = 0.0;
246 >                            d = 0.0;
247                              for (i = 0; i < nfiles; i++)
248 <                                colval(scanout[xpos],j) +=
249 <                                        colval(input[i].scan[xpos],j);
248 >                                d += colval(input[i].scan[xpos],j);
249                          }
250 <                        if (colval(scanout[xpos],j) < 0.0)
251 <                            colval(scanout[xpos],j) = 0.0;
250 >                        if (d < 0.0)
251 >                            d = 0.0;
252 >                        colval(scanout[xpos],j) = d;
253                      }
254                  }
255              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines