152 |
|
(xres + !xres) ); |
153 |
|
while (*cp) ++cp; |
154 |
|
} |
155 |
< |
sprintf(cp, "NCOLS=%d\nNCOMP=3\n", |
156 |
< |
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; |
164 |
< |
#ifdef getc_unlocked |
164 |
> |
#if 0 |
165 |
|
flockfile(stdout); /* avoid lock/unlock overhead */ |
166 |
|
#endif |
167 |
|
using_stdout = 1; |
203 |
|
goto openerr; |
204 |
|
if (outfmt != 'a') |
205 |
|
SET_FILE_BINARY(sop->ofp); |
206 |
< |
#ifdef getc_unlocked |
206 |
> |
#if 0 |
207 |
|
flockfile(sop->ofp); /* avoid lock/unlock overhead */ |
208 |
|
#endif |
209 |
|
if (accumulate > 0) { /* global resolution */ |
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 |
|
} |
474 |
|
error(WARNING, errmsg); |
475 |
|
break; |
476 |
|
} |
477 |
< |
#ifdef getc_unlocked |
477 |
> |
#if 0 |
478 |
|
flockfile(sout.ofp); |
479 |
|
#endif |
480 |
|
if (header && checkheader(sout.ofp, outvfmt, NULL) != 1) { |