[PR #1514] dix: inline SProcLookupColor()

PR: https://github.com/X11Libre/xserver/pull/1514
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-12-02 18:37:39 +01:00
parent d7420911d0
commit 59206e366a
4 changed files with 8 additions and 12 deletions

View File

@@ -3051,6 +3051,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

@@ -647,16 +647,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

@@ -58,7 +58,6 @@ int SProcGetMotionEvents(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,
ProcCreateGlyphCursor,
ProcFreeCursor, /* 95 */