#include "lx.h" #include "proto.h" #include "internal.h" void lx_ClearArea(LX_CONN *xc, LX_XID window, int x, int y, int w, int h, int exposures) { unsigned char req[16]; if ( (xc->flags & XCF_FAIL) || (x < -3278) || (x > 32767) || (y < -3278) || (y > 32767) || (w < 0) || (w > 65535) || (h < 0) || (h > 65535) ) { lx__bad_call(xc,"lx_ClearArea"); return; } req[0] = XP_REQ_ClearArea; req[1] = exposures ? 1 : 0; w_card16(&req[2],4); w_card32(&req[4],window); w_int16(&req[8],x); w_int16(&req[10],y); w_card16(&req[12],w); w_card16(&req[14],h); lx__send_req(xc,&req[0],16); }