| 1 |
< |
/* Copyright (c) 1995 Regents of the University of California */ |
| 1 |
> |
/* Copyright (c) 1996 Regents of the University of California */ |
| 2 |
|
|
| 3 |
|
#ifndef lint |
| 4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
| 102 |
|
|
| 103 |
|
#define pixjitter() (.5+dstrpix*(.5-frandom())) |
| 104 |
|
|
| 105 |
< |
static int hres, vres; /* resolution for this frame */ |
| 105 |
> |
int hres, vres; /* resolution for this frame */ |
| 106 |
|
|
| 107 |
|
extern char *mktemp(); |
| 108 |
|
|
| 403 |
|
else |
| 404 |
|
#endif |
| 405 |
|
signal(SIGCONT, report); |
| 406 |
< |
ypos = vres-1 - i; |
| 406 |
> |
ypos = vres-1 - i; /* initialize sampling */ |
| 407 |
> |
init_drawsources(psample); |
| 408 |
|
fillscanline(scanbar[0], zbar[0], sampdens, hres, ypos, hstep); |
| 409 |
|
/* compute scanlines */ |
| 410 |
|
for (ypos -= ystep; ypos > -ystep; ypos -= ystep) { |
| 425 |
|
/* fill bar */ |
| 426 |
|
fillscanbar(scanbar, zbar, hres, ypos, ystep); |
| 427 |
|
/* add bitty sources */ |
| 428 |
< |
drawsources(&ourview, hres, vres, scanbar, zbar, |
| 428 |
< |
0, hres, ypos, ystep, psample); |
| 428 |
> |
drawsources(scanbar, zbar, 0, hres, ypos, ystep); |
| 429 |
|
/* write it out */ |
| 430 |
|
#ifndef BSD |
| 431 |
|
signal(SIGCONT, SIG_IGN); /* don't interrupt writes */ |