9 |
|
*/ |
10 |
|
|
11 |
|
#include <math.h> |
12 |
< |
|
12 |
> |
#include "paths.h" |
13 |
|
#include "platform.h" |
14 |
|
#include "rtio.h" |
15 |
|
#include "rtmisc.h" |
31 |
|
|
32 |
|
double gamcor = 2.2; /* gamma correction */ |
33 |
|
int bradj = 0; /* brightness adjustment */ |
34 |
– |
char *progname; |
34 |
|
char msg[128]; |
35 |
|
|
36 |
|
static int getint2(FILE *fp); |
52 |
|
struct hdStruct head; |
53 |
|
int reverse = 0; |
54 |
|
int i; |
55 |
+ |
|
56 |
|
SET_DEFAULT_BINARY(); |
57 |
|
SET_FILE_BINARY(stdin); |
58 |
|
SET_FILE_BINARY(stdout); |
59 |
< |
progname = argv[0]; |
59 |
> |
fixargv0(argv[0]); |
60 |
|
|
61 |
|
head.dataBits = 16; |
62 |
|
for (i = 1; i < argc; i++) |