dix: inline SProcLookupColor()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-12-02 18:37:39 +01:00
committed by Enrico Weigelt
parent ec49f5d24a
commit ca35b825a3
4 changed files with 8 additions and 12 deletions

View File

@@ -3055,6 +3055,13 @@ int
ProcLookupColor(ClientPtr client)
{
REQUEST(xLookupColorReq);
REQUEST_AT_LEAST_SIZE(xLookupColorReq);
if (client->swapped) {
swapl(&stuff->cmap);
swaps(&stuff->nbytes);
}
REQUEST_FIXED_SIZE(xLookupColorReq, stuff->nbytes);
ColormapPtr pcmp;

View File

@@ -649,16 +649,6 @@ SProcQueryColors(ClientPtr client)
return ((*ProcVector[X_QueryColors]) (client));
}
int _X_COLD
SProcLookupColor(ClientPtr client)
{
REQUEST(xLookupColorReq);
REQUEST_AT_LEAST_SIZE(xLookupColorReq);
swapl(&stuff->cmap);
swaps(&stuff->nbytes);
return ((*ProcVector[X_LookupColor]) (client));
}
int _X_COLD
SProcCreateCursor(ClientPtr client)
{

View File

@@ -60,7 +60,6 @@ int SProcGetProperty(ClientPtr client);
int SProcImageText(ClientPtr client);
int SProcListFonts(ClientPtr client);
int SProcListFontsWithInfo(ClientPtr client);
int SProcLookupColor(ClientPtr client);
int SProcOpenFont(ClientPtr client);
int SProcPutImage(ClientPtr client);
int SProcQueryBestSize(ClientPtr client);

View File

@@ -424,7 +424,7 @@ int (*SwappedProcVector[256]) (ClientPtr /* client */) = {
SProcStoreColors,
SProcStoreNamedColor, /* 90 */
SProcQueryColors,
SProcLookupColor,
ProcLookupColor,
SProcCreateCursor,
SProcCreateGlyphCursor,
ProcFreeCursor, /* 95 */