1 |
+ |
/* Copyright (c) 1992 Regents of the University of California */ |
2 |
+ |
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
5 |
|
#endif |
19 |
|
*/ |
20 |
|
|
21 |
|
#include <stdio.h> |
22 |
+ |
#ifdef MSDOS |
23 |
+ |
#include <fcntl.h> |
24 |
+ |
#endif |
25 |
|
#include "color.h" |
26 |
|
#include "resolu.h" |
27 |
|
|
28 |
+ |
extern char *malloc(); |
29 |
|
|
30 |
|
double gamma = 2.2; /* gamma correction */ |
31 |
|
|
77 |
|
progname, argv[i+1]); |
78 |
|
exit(1); |
79 |
|
} |
80 |
+ |
#ifdef MSDOS |
81 |
+ |
setmode(fileno(stdin), O_BINARY); |
82 |
+ |
setmode(fileno(stdout), O_BINARY); |
83 |
+ |
#endif |
84 |
|
setcolrgam(gamma); /* set up gamma correction */ |
85 |
|
if (reverse) { |
86 |
|
/* get their image resolution */ |