#include "lx.h" #include "proto.h" #include "internal.h" LX_XID lx_CopyColormapAndFree(LX_CONN *xc, LX_XID old) { LX_XID new; unsigned char req[12]; if (xc->flags & XCF_FAIL) { lx__bad_call(xc,"lx_CopyColormapAndFree"); return(0); } lx__nochain(xc); new = lx__new_resource_id(xc); req[0] = XP_REQ_CopyColormapAndFree; req[1] = 0; w_card16(&req[2],3); w_card32(&req[4],new); w_card32(&req[8],old); lx__send_req(xc,&req[0],-1); return(new); }