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

Comparing ray/src/util/evalglare.c (file contents):
Revision 3.05 by greg, Thu Sep 11 17:40:45 2025 UTC vs.
Revision 3.07 by greg, Tue Sep 16 15:43:14 2025 UTC

# Line 415 | Line 415 | syntax now: -Q n_images n_extrascans_per_image n_image
415   #include "platform.h"
416   #include "muc_randvar.h"
417  
418 char *progname;
419
418   /* subroutine to add a pixel to a glare source */
419   void add_pixel_to_gs(pict * p, int x, int y, int gsn)
420   {
# Line 1559 | Line 1557 | int main(int argc, char **argv)
1557          char** temp_image_name;
1558          int *x_temp_img, *y_temp_img;
1559          double *scale_image_scans;
1560 +        int *new_gs_number = NULL;
1561          VIEW userview = STDVIEW;
1562          int gotuserview = 0;
1563          
# Line 3079 | Line 3078 | if (calcfast ==1 || search_pix <= 1.0 || calcfast == 2
3078                  
3079          }
3080  
3081 < int new_gs_number[igs+1];
3081 > new_gs_number = (int *)malloc(sizeof(int)*(igs+1));
3082  
3083                  i = 0;
3084                  for (x = 0; x <= igs; x++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)