25 |
|
#define sscanvec(s,v) (sscanf(s,"%lf %lf %lf",v,v+1,v+2)==3) |
26 |
|
#endif |
27 |
|
|
28 |
+ |
static int niflush; /* flushes since newimage() */ |
29 |
|
|
30 |
|
int |
31 |
|
getrect( /* get a box */ |
185 |
|
copycolor(p->v, thisray.rcol); |
186 |
|
scalecolor(p->v, exposure); |
187 |
|
|
188 |
< |
(*dev->paintr)(greyscale?greyof(p->v):p->v, p->xmin, p->ymin, p->xmax, p->ymax); |
188 |
> |
(*dev->paintr)(greyscale?greyof(p->v):p->v, |
189 |
> |
p->xmin, p->ymin, p->xmax, p->ymax); |
190 |
|
|
191 |
< |
if (dev->flush != NULL && raynum - lastflush >= WFLUSH*ray_pnprocs) { |
191 |
> |
if (dev->flush != NULL && raynum - lastflush >= ray_pnprocs * |
192 |
> |
(ambounce > 0 && niflush < WFLUSH ? niflush : WFLUSH)) { |
193 |
|
lastflush = raynum; |
194 |
|
(*dev->flush)(); |
195 |
+ |
niflush++; |
196 |
|
} |
197 |
|
return(1); |
198 |
|
} |
253 |
|
ray_popen(nproc); |
254 |
|
newparam = 0; |
255 |
|
} |
256 |
< |
/* get first value */ |
256 |
> |
niflush = 0; /* get first value */ |
257 |
|
paint(&ptrunk); |
258 |
|
} |
259 |
|
|