--- ray/src/hd/rhd_qtree2c.c 2004/01/01 11:21:55 3.3 +++ ray/src/hd/rhd_qtree2c.c 2018/10/05 19:19:16 3.5 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rhd_qtree2c.c,v 3.3 2004/01/01 11:21:55 schorsch Exp $"; +static const char RCSid[] = "$Id: rhd_qtree2c.c,v 3.5 2018/10/05 19:19:16 greg Exp $"; #endif /* * Quadtree display support routines for cone output. @@ -9,14 +9,14 @@ static const char RCSid[] = "$Id: rhd_qtree2c.c,v 3.3 #include "rhd_qtree.h" static void redraw(RTREE *tp, int x0, int y0, int x1, int y1, int l[2][2]); -static void cpaint(BYTE rgb[3], float *p, int x0, int y0, int x1, int y1); -static void update(BYTE ca[3], RTREE *tp, int x0, int y0, int x1, int y1); +static void cpaint(uby8 rgb[3], float *p, int x0, int y0, int x1, int y1); +static void update(uby8 ca[3], RTREE *tp, int x0, int y0, int x1, int y1); static void redraw( /* mark portion of a tree for redraw */ - register RTREE *tp, + RTREE *tp, int x0, int y0, int x1, @@ -26,7 +26,7 @@ redraw( /* mark portion of a tree for redraw */ { int quads = CH_ANY; int mx, my; - register int i; + int i; /* compute midpoint */ mx = (x0 + x1) >> 1; my = (y0 + y1) >> 1; @@ -50,8 +50,8 @@ redraw( /* mark portion of a tree for redraw */ static void cpaint( /* paint a cone within a rectangle */ - BYTE rgb[3], - register float *p, + uby8 rgb[3], + float *p, int x0, int y0, int x1, @@ -95,8 +95,8 @@ cpaint( /* paint a cone within a rectangle */ static void update( /* update tree display as needed */ - BYTE ca[3], /* returned average color */ - register RTREE *tp, + uby8 ca[3], /* returned average color */ + RTREE *tp, int x0, int y0, int x1, @@ -104,11 +104,11 @@ update( /* update tree display as needed */ ) { int csm[3], nc; - register BYTE *cp; - BYTE rgb[3]; + uby8 *cp; + uby8 rgb[3]; int gaps = 0; int mx, my; - register int i; + int i; /* compute midpoint */ mx = (x0 + x1) >> 1; my = (y0 + y1) >> 1; @@ -149,7 +149,7 @@ update( /* update tree display as needed */ } -extern void +void qtRedraw( /* redraw part or all of our screen */ int x0, int y0, @@ -168,10 +168,10 @@ qtRedraw( /* redraw part or all of our screen */ } -extern void +void qtUpdate(void) /* update our tree display */ { - BYTE ca[3]; + uby8 ca[3]; if (is_stump(&qtrunk)) return;