mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
dix: inline SProcLookupColor()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
ec49f5d24a
commit
ca35b825a3
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -424,7 +424,7 @@ int (*SwappedProcVector[256]) (ClientPtr /* client */) = {
|
||||
SProcStoreColors,
|
||||
SProcStoreNamedColor, /* 90 */
|
||||
SProcQueryColors,
|
||||
SProcLookupColor,
|
||||
ProcLookupColor,
|
||||
SProcCreateCursor,
|
||||
SProcCreateGlyphCursor,
|
||||
ProcFreeCursor, /* 95 */
|
||||
|
||||
Reference in New Issue
Block a user