22 |
|
Pixmap pm; /* storage on server side */ |
23 |
|
} XRASTER; |
24 |
|
|
25 |
+ |
extern Colormap newcmap(); |
26 |
+ |
|
27 |
|
extern unsigned long *map_rcolors(); |
28 |
|
|
29 |
|
extern Pixmap make_rpixmap(); |
30 |
|
|
31 |
|
extern XRASTER *make_raster(); |
32 |
|
|
33 |
< |
#define put_raster(d,xdst,ydst,xr) \ |
32 |
< |
patch_raster(d,0,0,xdst,ydst, \ |
33 |
> |
#define put_raster(d,xdst,ydst,xr) patch_raster(d,0,0,xdst,ydst, \ |
34 |
|
(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)) |