13 |
|
#include <math.h> |
14 |
|
|
15 |
|
#include "platform.h" |
16 |
– |
#include "paths.h" |
16 |
|
#include "rtio.h" |
17 |
|
#include "color.h" |
18 |
|
#include "resolu.h" |
120 |
|
WARP3D *wcor = NULL; /* color space warp */ |
121 |
|
|
122 |
|
FILE *debugfp = NULL; /* debug output picture */ |
124 |
– |
char *progname; |
123 |
|
|
124 |
|
static void init(void); |
125 |
|
static int chartndx(int x, int y, int *np); |
148 |
|
{ |
149 |
|
int i; |
150 |
|
|
151 |
< |
progname = argv[0]; |
151 |
> |
fixargv0(argv[0]); /* sets global progname */ |
152 |
|
for (i = 1; i < argc && argv[i][0] == '-'; i++) |
153 |
|
switch (argv[i][1]) { |
154 |
|
case 'd': /* debug output */ |