mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-13 05:51:02 +00:00
[PR #1514] dix: inline SProcLookupColor()
PR: https://github.com/X11Libre/xserver/pull/1514
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -424,7 +424,7 @@ int (*SwappedProcVector[256]) (ClientPtr /* client */) = {
|
||||
SProcStoreColors,
|
||||
SProcStoreNamedColor, /* 90 */
|
||||
SProcQueryColors,
|
||||
SProcLookupColor,
|
||||
ProcLookupColor,
|
||||
SProcCreateCursor,
|
||||
ProcCreateGlyphCursor,
|
||||
ProcFreeCursor, /* 95 */
|
||||
|
||||
Reference in New Issue
Block a user