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

Comparing ray/src/rt/rview.c (file contents):
Revision 1.19 by greg, Thu Jul 18 14:42:58 1991 UTC vs.
Revision 1.20 by greg, Mon Aug 26 12:53:17 1991 UTC

# Line 62 | Line 62 | int  pdepth;                           /* image depth in current frame */
62  
63   static char  *reserve_mem = NULL;       /* pre-allocated reserve memory */
64  
65 < #define RESERVE_AMT     8192            /* amount of memory to reserve */
65 > #define RESERVE_AMT     32768           /* amount of memory to reserve */
66  
67   #define  CTRL(c)        ('c'-'@')
68  
# Line 316 | Line 316 | rsample()                      /* sample the image */
316                                                  /* sample the image */
317          for (y = 0; /* y < ysiz */ ; y++) {
318                  for (x = 0; x < xsiz-1; x++) {
319 <                        if (dev->inpready)
319 >                        if (dev->inpready || errno == ENOMEM)
320                                  goto escape;
321                          /*
322                           * Test super-pixel to the right.
# Line 332 | Line 332 | rsample()                      /* sample the image */
332                  if (y >= ysiz-1)
333                          break;
334                  for (x = 0; x < xsiz; x++) {
335 <                        if (dev->inpready)
335 >                        if (dev->inpready || errno == ENOMEM)
336                                  goto escape;
337                          /*
338                           * Find super-pixel at this position in next row.
# Line 387 | Line 387 | int  pd;
387          if (p->kid == NULL) {                   /* subdivide */
388  
389                  if ((p->kid = newptree()) == NULL)
390 <                        return(growth);
390 >                        return(0);
391                  /*
392                   *  The following paint order can leave a black pixel
393                   *  when redraw() is called in (*dev->paintr)().

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines