15 |
|
|
16 |
|
#include "color.h" |
17 |
|
|
18 |
+ |
#include "resolu.h" |
19 |
+ |
|
20 |
|
#include "random.h" |
21 |
|
|
22 |
|
#include "targa.h" |
107 |
|
printargs(i, argv, stdout); |
108 |
|
fputformat(COLRFMT, stdout); |
109 |
|
putchar('\n'); |
110 |
< |
fputresolu(YMAJOR|YDECR, head.x, head.y, stdout); |
110 |
> |
fprtresolu(head.x, head.y, stdout); |
111 |
|
/* convert file */ |
112 |
|
tg2ra(&head); |
113 |
|
} else { |
114 |
|
if (checkheader(stdin, COLRFMT, NULL) < 0 || |
115 |
< |
fgetresolu(&head.x, &head.y, stdin) != (YMAJOR|YDECR)) |
115 |
> |
fgetresolu(&head.x, &head.y, stdin) < 0) |
116 |
|
quiterr("bad picture file"); |
117 |
|
/* assign header */ |
118 |
|
head.textSize = 0; |