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.15 by greg, Mon Oct 16 12:04:36 1995 UTC vs.
Revision 2.16 by greg, Wed Feb 14 20:19:52 1996 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1992 Regents of the University of California */
1 > /* Copyright (c) 1996 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 454 | Line 454 | scan2init()                    /* prepare scanline arrays */
454                          rad *= (y_r + x_c)/2.0;
455  
456                  if (thresh > FTINY) {
457                        xrad = CHECKRAD*THRESHRAD*rad/x_c + xbrad;
458                        yrad = CHECKRAD*THRESHRAD*rad/y_r + ybrad;
457                          orad = CHECKRAD*THRESHRAD*rad + 1;
458 +                        xrad = orad/x_c + xbrad;
459 +                        yrad = orad/y_r + ybrad;
460                          obarsize = 2*orad + 1;
461                  } else {
462                          xrad = CHECKRAD*rad/x_c + 1;
# Line 526 | Line 526 | int  r;
526          int  ybot;
527          register int  c;
528                                          /* average input scanlines */
529 <        while (nextrow < r+orad && nextrow < nrows) {
529 >        while (nextrow <= r+orad && nextrow < nrows) {
530                  ybot = (long)nextrow*yres/nrows;
531                  for (c = 0; c < ncols; c++) {
532                          dobox(ctmp, (int)((long)c*xres/ncols),ybot, c,nextrow);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines