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

Comparing ray/src/util/findglare.c (file contents):
Revision 2.4 by greg, Mon Dec 7 09:13:58 1992 UTC vs.
Revision 2.6 by greg, Mon Jun 7 10:31:35 1993 UTC

# Line 112 | Line 112 | char   *argv[];
112                          /* FALL THROUGH */
113                  case 'l':
114                  case 's':
115 +                case 'P':
116                          rtargv[rtargc++] = argv[i];
117                          rtargv[rtargc++] = argv[++i];
118                          break;
# Line 363 | Line 364 | int    x, y;
364                  xo = x-hl;
365          else
366                  xo = 0;
367 <        disc = 1. - (double)(xo*xo + y*y)/(sampdens*sampdens);
368 <        if (disc <= FTINY)
367 >        disc = 1. - (double)((long)xo*xo + (long)y*y)/((long)sampdens*sampdens);
368 >        if (disc <= FTINY*FTINY)
369                  return(0.);
370          return(1./(sampdens*sampdens*sqrt(disc)));
371   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines