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

Comparing ray/src/px/pcompos.c (file contents):
Revision 2.33 by greg, Mon Aug 10 04:26:38 2009 UTC vs.
Revision 2.34 by greg, Thu Jun 4 01:19:30 2015 UTC

# Line 243 | Line 243 | getfile:
243                                          input[nfile].name);
244                          quit(1);
245                  }
246 <                if (ncolumns > 0) {
247 <                        if (curcol >= ncolumns) {
246 >                if (ncolumns) {
247 >                        if (curcol >= abs(ncolumns)) {
248                                  cury = ymax + spacing;
249                                  curx = x0;
250                                  curcol = 0;
# Line 297 | Line 297 | getfile:
297                  ysiz = ymax;
298          else if (ysiz > ymax)
299                  ymax = ysiz;
300 +        if (ncolumns < 0) {             /* reverse rows if requested */
301 +                int     i = nfile;
302 +                while (i--)
303 +                        input[i].yloc = ymax - input[i].yres - input[i].yloc;
304 +        }
305                                          /* add new header info. */
306          printargs(argc, argv, stdout);
307          if (strcmp(ourfmt, PICFMT))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines