16 |
|
|
17 |
|
#include "resolu.h" |
18 |
|
|
19 |
< |
#define MAXFILE 32 |
19 |
> |
#define MAXFILE 64 |
20 |
|
|
21 |
|
/* output picture size */ |
22 |
|
int xsiz = 0; |
217 |
|
goto toomany; |
218 |
|
input[nfile].name = "<Label>"; |
219 |
|
input[nfile].hasmin = input[nfile].hasmax = 0; |
220 |
+ |
input[nfile].xres = input[nfile-1].xres; |
221 |
+ |
input[nfile].yres = labelht; |
222 |
|
if ((input[nfile].fp = lblopen(thislabel, |
223 |
|
&input[nfile].xres, |
224 |
|
&input[nfile].yres)) == NULL) |
339 |
|
char com[128]; |
340 |
|
FILE *fp; |
341 |
|
|
342 |
< |
sprintf(com, "psign -s -.2 -h %d '%.30s'", labelht, s); |
342 |
> |
sprintf(com, "psign -s -.15 -a 2 -x %d -y %d '%.90s'", *xp, *yp, s); |
343 |
|
if ((fp = popen(com, "r")) == NULL) |
344 |
|
return(NULL); |
345 |
|
if (checkheader(fp, COLRFMT, NULL) < 0) |
356 |
|
quit(code) /* exit gracefully */ |
357 |
|
int code; |
358 |
|
{ |
359 |
+ |
int status; |
360 |
+ |
|
361 |
+ |
if (code == 0) /* reap any children */ |
362 |
+ |
while (wait(&status) != -1) |
363 |
+ |
if (code == 0) |
364 |
+ |
code = status>>8 & 0xff; |
365 |
|
exit(code); |
366 |
|
} |