mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
dix: inline SProcAllocColor()
Now that we have untwisted Xinerama side, it's trivial to inline the few lines for byte-swapping into the actual handlers. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
e352fdecfe
commit
85fae9bffb
@@ -2710,6 +2710,13 @@ ProcAllocColor(ClientPtr client)
|
||||
REQUEST(xAllocColorReq);
|
||||
REQUEST_SIZE_MATCH(xAllocColorReq);
|
||||
|
||||
if (client->swapped) {
|
||||
swapl(&stuff->cmap);
|
||||
swaps(&stuff->red);
|
||||
swaps(&stuff->green);
|
||||
swaps(&stuff->blue);
|
||||
}
|
||||
|
||||
xAllocColorReply rep = {
|
||||
.red = stuff->red,
|
||||
.green = stuff->green,
|
||||
|
||||
@@ -584,18 +584,6 @@ SProcCopyColormapAndFree(ClientPtr client)
|
||||
return ((*ProcVector[X_CopyColormapAndFree]) (client));
|
||||
}
|
||||
|
||||
int _X_COLD
|
||||
SProcAllocColor(ClientPtr client)
|
||||
{
|
||||
REQUEST(xAllocColorReq);
|
||||
REQUEST_SIZE_MATCH(xAllocColorReq);
|
||||
swapl(&stuff->cmap);
|
||||
swaps(&stuff->red);
|
||||
swaps(&stuff->green);
|
||||
swaps(&stuff->blue);
|
||||
return ((*ProcVector[X_AllocColor]) (client));
|
||||
}
|
||||
|
||||
int _X_COLD
|
||||
SProcAllocNamedColor(ClientPtr client)
|
||||
{
|
||||
|
||||
@@ -30,7 +30,6 @@ extern void SwapColorItem(xColorItem * /* pItem */ );
|
||||
|
||||
extern void SwapConnClientPrefix(xConnClientPrefix * /* pCCP */ );
|
||||
|
||||
int SProcAllocColor(ClientPtr client);
|
||||
int SProcAllocColorCells(ClientPtr client);
|
||||
int SProcAllocColorPlanes(ClientPtr client);
|
||||
int SProcAllocNamedColor(ClientPtr client);
|
||||
|
||||
@@ -416,7 +416,7 @@ int (*SwappedProcVector[256]) (ClientPtr /* client */) = {
|
||||
ProcInstallColormap,
|
||||
ProcUninstallColormap,
|
||||
ProcListInstalledColormaps,
|
||||
SProcAllocColor,
|
||||
ProcAllocColor,
|
||||
SProcAllocNamedColor, /* 85 */
|
||||
SProcAllocColorCells,
|
||||
SProcAllocColorPlanes,
|
||||
|
||||
Reference in New Issue
Block a user