render: use X_REQUEST_*() and X_REPLY_*() macros in ProcRenderQueryFilters()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2026-05-08 18:00:45 +02:00 • committed by Enrico Weigelt
commit e03a2e39ee

View file

@ -1496,11 +1496,8 @@ SingleRenderSetPictureTransform(ClientPtr client,
static int
ProcRenderQueryFilters(ClientPtr client)
{
REQUEST(xRenderQueryFiltersReq);
REQUEST_SIZE_MATCH(xRenderQueryFiltersReq);
if (client->swapped)
swapl(&stuff->drawable);
X_REQUEST_HEAD_STRUCT(xRenderQueryFiltersReq);
X_REQUEST_FIELD_CARD32(drawable);
DrawablePtr pDrawable;
int nbytesName;
@ -1586,10 +1583,11 @@ ProcRenderQueryFilters(ClientPtr client)
for (i = 0; i < nnames; i++) {
swaps(&aliases[i]);
}
swapl(&reply.numAliases);
swapl(&reply.numFilters);
}
X_REPLY_FIELD_CARD32(numAliases);
X_REPLY_FIELD_CARD32(numFilters);
return X_SEND_REPLY_WITH_RPCBUF(client, reply, rpcbuf);
}