29 |
|
#define sscanvec(s,v) (sscanf(s,"%lf %lf %lf",v,v+1,v+2)==3) |
30 |
|
#endif |
31 |
|
|
32 |
< |
static unsigned long niflush; /* flushes since newimage() */ |
32 |
> |
static RNUMBER niflush; /* flushes since newimage() */ |
33 |
|
|
34 |
|
int |
35 |
|
getrect( /* get a box */ |
197 |
|
} else { /* queuing mode */ |
198 |
|
int rval; |
199 |
|
rayorigin(&thisray, PRIMARY, NULL, NULL); |
200 |
< |
thisray.rno = (unsigned long)p; |
200 |
> |
thisray.rno = (RNUMBER)p; |
201 |
|
rval = ray_pqueue(&thisray); |
202 |
|
if (!rval) |
203 |
|
return(0); |
212 |
|
recolor(p); /* paint it */ |
213 |
|
|
214 |
|
if (dev->flush != NULL) { /* shall we check for input? */ |
215 |
< |
static unsigned long lastflush = 0; |
216 |
< |
unsigned long counter = raynum; |
217 |
< |
int flushintvl; |
215 |
> |
static RNUMBER lastflush = 0; |
216 |
> |
RNUMBER counter = raynum; |
217 |
> |
int flushintvl; |
218 |
|
if (nproc == 1) { |
219 |
|
counter = nrays; |
220 |
|
flushintvl = WFLUSH1; |