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,
|
||||
|
||||
Reference in New Issue
Block a user