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.12 by greg, Wed Jul 9 21:09:28 2014 UTC vs.
Revision 2.13 by greg, Thu Jul 24 16:28:17 2014 UTC

# Line 152 | Line 152 | getostream(const char *ospec, const char *mname, int b
152                                                          (xres + !xres) );
153                                          while (*cp) ++cp;
154                                  }
155 <                                sprintf(cp, "NCOLS=%d\n", stdos.reclen);
155 >                                if ((xres <= 0) | (stdos.reclen > 1))
156 >                                        sprintf(cp, "NCOLS=%d\n", stdos.reclen);
157                                  printheader(stdout, info);
158                          }
159 <                        printresolu(stdout, xres, yres);
159 >                        if (stdos.reclen == 1)
160 >                                printresolu(stdout, xres, yres);
161                          if (waitflush > 0)
162                                  fflush(stdout);
163                          stdos.xr = xres; stdos.yr = yres;
# Line 222 | Line 224 | getostream(const char *ospec, const char *mname, int b
224                                                  (sop->xr + !sop->xr) );
225                                  while (*cp) ++cp;
226                          }
227 <                        sprintf(cp, "NCOLS=%d\nNCOMP=3\n", sop->reclen);
227 >                        if ((sop->xr <= 0) | (sop->reclen > 1))
228 >                                sprintf(cp, "NCOLS=%d\n", sop->reclen);
229                          printheader(sop->ofp, info);
230                  }
231 <                printresolu(sop->ofp, sop->xr, sop->yr);
231 >                if (sop->reclen == 1)
232 >                        printresolu(sop->ofp, sop->xr, sop->yr);
233                  if (waitflush > 0)
234                          fflush(sop->ofp);
235          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines