| 1 |
< |
/* Copyright 1990 Regents of the University of California */ |
| 2 |
< |
|
| 3 |
< |
/* SCCSid "$SunId$ LBL" */ |
| 4 |
< |
|
| 1 |
> |
/* RCSid: $Id$ */ |
| 2 |
|
/* |
| 3 |
|
* x11raster.h - header file for X routines using images. |
| 4 |
|
* |
| 19 |
|
Pixmap pm; /* storage on server side */ |
| 20 |
|
} XRASTER; |
| 21 |
|
|
| 22 |
+ |
extern Colormap newcmap(); |
| 23 |
+ |
|
| 24 |
|
extern unsigned long *map_rcolors(); |
| 25 |
|
|
| 26 |
|
extern Pixmap make_rpixmap(); |
| 27 |
|
|
| 28 |
|
extern XRASTER *make_raster(); |
| 29 |
|
|
| 30 |
< |
#define put_raster(d,xdst,ydst,xr) \ |
| 32 |
< |
patch_raster(d,0,0,xdst,ydst, \ |
| 30 |
> |
#define put_raster(d,xdst,ydst,xr) patch_raster(d,0,0,xdst,ydst, \ |
| 31 |
|
(xr)->image->width,(xr)->image->height,xr) |
| 34 |
– |
|
| 35 |
– |
#define patch_raster(d,xsrc,ysrc,xdst,ydst,width,height,xr) \ |
| 36 |
– |
(((xr)->pm == 0) \ |
| 37 |
– |
? XPutImage((xr)->disp,d,(xr)->gc,(xr)->image,xsrc,ysrc, \ |
| 38 |
– |
xdst,ydst,width,height) \ |
| 39 |
– |
: XCopyArea((xr)->disp,(xr)->pm,d,(xr)->gc,xsrc,ysrc, \ |
| 40 |
– |
width,height,xdst,ydst)) |