| 13 |
|
|
| 14 |
|
#include <stdio.h> |
| 15 |
|
|
| 16 |
+ |
#ifdef MSDOS |
| 17 |
+ |
#include <fcntl.h> |
| 18 |
+ |
#endif |
| 19 |
+ |
|
| 20 |
+ |
#include <math.h> |
| 21 |
+ |
|
| 22 |
|
#include "color.h" |
| 23 |
|
|
| 24 |
|
#include "resolu.h" |
| 40 |
|
|
| 41 |
|
extern char *ecalloc(), *emalloc(); |
| 42 |
|
|
| 37 |
– |
extern double atof(), pow(); |
| 38 |
– |
|
| 43 |
|
double gamma = 2.2; /* gamma correction */ |
| 44 |
|
|
| 45 |
|
int bradj = 0; /* brightness adjustment */ |
| 56 |
|
struct hdStruct head; |
| 57 |
|
int reverse = 0; |
| 58 |
|
int i; |
| 59 |
< |
|
| 59 |
> |
#ifdef MSDOS |
| 60 |
> |
extern int _fmode; |
| 61 |
> |
_fmode = O_BINARY; |
| 62 |
> |
setmode(fileno(stdin), O_BINARY); |
| 63 |
> |
setmode(fileno(stdout), O_BINARY); |
| 64 |
> |
#endif |
| 65 |
|
progname = argv[0]; |
| 66 |
|
|
| 67 |
|
head.dataBits = 16; |