| 18 |
|
|
| 19 |
|
#include "standard.h" |
| 20 |
|
|
| 21 |
+ |
#include <string.h> |
| 22 |
|
#include <signal.h> |
| 23 |
|
#include <X11/Xlib.h> |
| 24 |
|
#include <X11/cursorfont.h> |
| 626 |
|
traceray(xpos, ypos) /* print requested pixel data */ |
| 627 |
|
int xpos, ypos; |
| 628 |
|
{ |
| 629 |
< |
FLOAT hv[2]; |
| 629 |
> |
RREAL hv[2]; |
| 630 |
|
FVECT rorg, rdir; |
| 631 |
|
COLOR cval; |
| 632 |
|
register char *cp; |
| 674 |
|
XColor cvx; |
| 675 |
|
int com, n; |
| 676 |
|
double comp; |
| 677 |
< |
FLOAT hv[2]; |
| 677 |
> |
RREAL hv[2]; |
| 678 |
|
|
| 679 |
|
n = XLookupString(ekey, buf, sizeof(buf), NULL, NULL); |
| 680 |
|
if (n == 0) |
| 1310 |
|
static int trunced = -1; /* truncated file? */ |
| 1311 |
|
skipit: |
| 1312 |
|
if (trunced >= 0 && y >= trunced) { |
| 1313 |
< |
bzero(scanline, xmax*sizeof(COLR)); |
| 1313 |
> |
memset(scanline, '\0', xmax*sizeof(COLR)); |
| 1314 |
|
return(-1); |
| 1315 |
|
} |
| 1316 |
|
if (y != cury) { |