36 |
|
static void starpoint(COLOR fcol, int x, int y, HOTPIX *hp); |
37 |
|
|
38 |
|
|
39 |
< |
extern void |
39 |
> |
void |
40 |
|
pass1init(void) /* prepare for first pass */ |
41 |
|
{ |
42 |
|
avgbrt = 0.0; |
45 |
|
} |
46 |
|
|
47 |
|
|
48 |
< |
extern void |
48 |
> |
void |
49 |
|
pass1default(void) /* for single pass */ |
50 |
|
{ |
51 |
|
avgbrt = AVGLVL; |
54 |
|
} |
55 |
|
|
56 |
|
|
57 |
< |
extern void |
57 |
> |
void |
58 |
|
pass1scan( /* process first pass scanline */ |
59 |
< |
register COLOR *scan, |
59 |
> |
COLOR *scan, |
60 |
|
int y |
61 |
|
) |
62 |
|
{ |
63 |
|
double cbrt; |
64 |
< |
register int x; |
65 |
< |
register HOTPIX *hp; |
64 |
> |
int x; |
65 |
> |
HOTPIX *hp; |
66 |
|
|
67 |
|
for (x = 0; x < xres; x++) { |
68 |
|
|
93 |
|
} |
94 |
|
|
95 |
|
|
96 |
< |
extern void |
96 |
> |
void |
97 |
|
pass2init(void) /* prepare for final pass */ |
98 |
|
{ |
99 |
|
if (!npix) { |
110 |
|
} |
111 |
|
|
112 |
|
|
113 |
< |
extern void |
113 |
> |
void |
114 |
|
pass2scan( /* process final pass scanline */ |
115 |
< |
register COLOR *scan, |
115 |
> |
COLOR *scan, |
116 |
|
int y |
117 |
|
) |
118 |
|
{ |
119 |
|
int xmin, xmax; |
120 |
< |
register int x; |
121 |
< |
register HOTPIX *hp; |
120 |
> |
int x; |
121 |
> |
HOTPIX *hp; |
122 |
|
|
123 |
|
for (hp = head; hp != NULL; hp = hp->next) { |
124 |
|
if (hp->slope > FTINY) { |
151 |
|
COLOR fcol, |
152 |
|
int x, |
153 |
|
int y, |
154 |
< |
register HOTPIX *hp |
154 |
> |
HOTPIX *hp |
155 |
|
) |
156 |
|
{ |
157 |
|
COLOR ctmp; |