56 |
|
#define COMHT 16 /* height of command line */ |
57 |
|
#define COMCW 63 /* maximum chars on command line */ |
58 |
|
|
59 |
– |
int anewcolr(); |
60 |
– |
|
59 |
|
int aed_close(), aed_clear(), aed_paintr(), |
60 |
|
aed_getcur(), aed_comout(), aed_errout(); |
61 |
|
|
86 |
|
byte(BLK); byte(WHT); byte(15); |
87 |
|
command(SCP); |
88 |
|
byte('+'); byte(0); byte(1); |
89 |
< |
make_cmap(GAMMA); /* make color map */ |
89 |
> |
make_gmap(GAMMA); /* make color map */ |
90 |
|
errvec = aed_errout; /* set error vector */ |
91 |
|
cmdvec = aed_errout; |
92 |
|
if (wrnvec != NULL) |
117 |
|
int x, y; |
118 |
|
{ |
119 |
|
command(FFD); |
120 |
< |
new_ctab(NCOLORS, anewcolr); /* init color table */ |
120 |
> |
new_ctab(NCOLORS); /* init color table */ |
121 |
|
flush(); |
122 |
|
} |
123 |
|
|
127 |
|
COLOR col; |
128 |
|
int xmin, ymin, xmax, ymax; |
129 |
|
{ |
130 |
+ |
extern int anewcolr(); |
131 |
|
int ndx; |
132 |
|
|
133 |
< |
ndx = get_pixel(col); /* may call anewcolr() */ |
133 |
> |
ndx = get_pixel(col, anewcolr); /* calls anewcolr() */ |
134 |
|
command(SEC); /* draw rectangle */ |
135 |
|
byte(ndx+MINPIX); |
136 |
|
aedsetcap(xmin, ymin+COMHT); |