# | Line 5 | Line 5 | static const char RCSid[] = "$Id$"; | |
---|---|---|
5 | * Create a 4x1 hex bitmap from a Radiance picture. | |
6 | */ | |
7 | ||
8 | < | #include <stdio.h> |
9 | < | #include <time.h> |
10 | < | |
8 | > | #include "platform.h" |
9 | #include "color.h" | |
10 | + | #include "rtio.h" |
11 | #include "resolu.h" | |
12 | ||
13 | char *progname; | |
# | Line 59 | Line 58 | main( | |
58 | } | |
59 | /* assign threshold color */ | |
60 | setcolr(threshclr, thresh, thresh, thresh); | |
61 | + | /* binary input */ |
62 | + | SET_FILE_BINARY(stdin); |
63 | /* get our header */ | |
64 | if (checkheader(stdin, COLRFMT, NULL) < 0 || | |
65 | fgetresolu(&xmax, &ymax, stdin) < 0) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |