mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-27 20:58:52 +00:00
Revert "randr: ProcRRGetCrtcGamma(): use SwapShort()/SwapLong()"
This reverts commit d9863f7cb0.
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2012>
This commit is contained in:
@@ -1676,16 +1676,13 @@ ProcRRGetCrtcGamma(ClientPtr client)
|
||||
swapl(&reply.length);
|
||||
swaps(&reply.size);
|
||||
}
|
||||
WriteToClient(client, sizeof(xRRGetCrtcGammaReply), &reply);
|
||||
if (crtc->gammaSize) {
|
||||
memcpy(extra, crtc->gammaRed, len);
|
||||
if (client->swapped)
|
||||
SwapShorts((short*)extra, len/sizeof(CARD16));
|
||||
client->pSwapReplyFunc = (ReplySwapPtr) CopySwap16Write;
|
||||
WriteSwappedDataToClient(client, len, extra);
|
||||
free(extra);
|
||||
}
|
||||
|
||||
WriteToClient(client, sizeof(xRRGetCrtcGammaReply), &reply);
|
||||
WriteToClient(client, len, extra);
|
||||
free(extra);
|
||||
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user