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

Comparing ray/src/rt/rc2.c (file contents):
Revision 2.15 by greg, Sun Aug 23 00:17:12 2015 UTC vs.
Revision 2.16 by greg, Tue Mar 1 00:58:31 2016 UTC

# Line 482 | Line 482 | reload_output()
482                                                          oname);
483                                          error(USER, errmsg);
484                                  }
485 <                                if ((sout.xr > 0) & (sout.yr > 0) &&
485 >                                if ((sout.reclen == 1) & (sout.xr > 0) & (sout.yr > 0) &&
486                                                  (!fscnresolu(&xr, &yr, sout.ofp) ||
487                                                          (xr != sout.xr) |
488                                                          (yr != sout.yr))) {
# Line 592 | Line 592 | recover_output()
592                          } else {
593                                  sout.reclen = 0;
594                                  sout.outpipe = 0;
595 +                                sout.xr = xres;
596 +                                sout.yr = yres;
597                                  sout.ofp = NULL;
598                          }
599                          if (sout.ofp != NULL) { /* already open? */
# Line 632 | Line 634 | recover_output()
634                                                  oname);
635                                  error(USER, errmsg);
636                          }
637 <                        sout.xr = xres; sout.yr = yres;
636 <                        if ((sout.xr > 0) & (sout.yr > 0) &&
637 >                        if ((sout.reclen == 1) & (sout.xr > 0) & (sout.yr > 0) &&
638                                          (!fscnresolu(&xr, &yr, sout.ofp) ||
639                                                  (xr != sout.xr) |
640                                                  (yr != sout.yr))) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines