dix: inline SProcQueryColor()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-12-02 19:24:43 +01:00
committed by Enrico Weigelt
parent 3e4bb9a0d9
commit 28d930b16c
4 changed files with 9 additions and 15 deletions

View File

@@ -3011,12 +3011,17 @@ ProcStoreNamedColor(ClientPtr client)
int
ProcQueryColors(ClientPtr client)
{
REQUEST(xQueryColorsReq);
REQUEST_AT_LEAST_SIZE(xQueryColorsReq);
if (client->swapped) {
swapl(&stuff->cmap);
SwapRestL(stuff);
}
ColormapPtr pcmp;
int rc;
REQUEST(xQueryColorsReq);
REQUEST_AT_LEAST_SIZE(xQueryColorsReq);
rc = dixLookupResourceByType((void **) &pcmp, stuff->cmap, X11_RESTYPE_COLORMAP,
client, DixReadAccess);
if (rc == Success) {