9 |
|
#include "rhd_qtree.h" |
10 |
|
|
11 |
|
static void redraw(RTREE *tp, int x0, int y0, int x1, int y1, int l[2][2]); |
12 |
< |
static void cpaint(BYTE rgb[3], float *p, int x0, int y0, int x1, int y1); |
13 |
< |
static void update(BYTE ca[3], RTREE *tp, int x0, int y0, int x1, int y1); |
12 |
> |
static void cpaint(uby8 rgb[3], float *p, int x0, int y0, int x1, int y1); |
13 |
> |
static void update(uby8 ca[3], RTREE *tp, int x0, int y0, int x1, int y1); |
14 |
|
|
15 |
|
|
16 |
|
|
50 |
|
|
51 |
|
static void |
52 |
|
cpaint( /* paint a cone within a rectangle */ |
53 |
< |
BYTE rgb[3], |
53 |
> |
uby8 rgb[3], |
54 |
|
register float *p, |
55 |
|
int x0, |
56 |
|
int y0, |
95 |
|
|
96 |
|
static void |
97 |
|
update( /* update tree display as needed */ |
98 |
< |
BYTE ca[3], /* returned average color */ |
98 |
> |
uby8 ca[3], /* returned average color */ |
99 |
|
register RTREE *tp, |
100 |
|
int x0, |
101 |
|
int y0, |
104 |
|
) |
105 |
|
{ |
106 |
|
int csm[3], nc; |
107 |
< |
register BYTE *cp; |
108 |
< |
BYTE rgb[3]; |
107 |
> |
register uby8 *cp; |
108 |
> |
uby8 rgb[3]; |
109 |
|
int gaps = 0; |
110 |
|
int mx, my; |
111 |
|
register int i; |
171 |
|
extern void |
172 |
|
qtUpdate(void) /* update our tree display */ |
173 |
|
{ |
174 |
< |
BYTE ca[3]; |
174 |
> |
uby8 ca[3]; |
175 |
|
|
176 |
|
if (is_stump(&qtrunk)) |
177 |
|
return; |