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.32 by greg, Fri Sep 8 21:38:25 2006 UTC vs.
Revision 2.35 by greg, Tue Feb 2 18:02:32 2016 UTC

# Line 15 | Line 15 | static const char      RCSid[] = "$Id$";
15   #include "copyright.h"
16  
17   #include  "platform.h"
18 < #include  "rtprocess.h"
18 > #include  "paths.h"
19   #include  "rterror.h"
20   #include  "color.h"
21   #include  "resolu.h"
22  
23 < #define  MAXFILE        512
23 > #define  MAXFILE        1024
24  
25   #define  HASMIN         1
26   #define  HASMAX         2
# 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