| 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; |
| 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)) |