28 |
|
|
29 |
|
extern XRASTER *make_raster(); |
30 |
|
|
31 |
< |
#define put_raster(d,xdst,ydst,xr) \ |
32 |
< |
patch_raster(d,0,0,xdst,ydst, \ |
31 |
> |
#define put_raster(d,xdst,ydst,xr) patch_raster(d,0,0,xdst,ydst, \ |
32 |
|
(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)) |