Xext: vidmode: ProcVidModeSetGammaRamp() clean up length computation

Make computation of reply length a bit easier to understand.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-07-17 16:14:33 +02:00
parent 5c12c7ad53
commit 9b661813f1

View File

@ -1575,7 +1575,7 @@ ProcVidModeGetGammaRamp(ClientPtr client)
xXF86VidModeGetGammaRampReply rep = {
.type = X_Reply,
.sequenceNumber = client->sequence,
.length = (length >> 1) * 3,
.length = bytes_to_int32(ramplen),
.size = stuff->size
};
if (client->swapped) {