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:
parent
5c12c7ad53
commit
9b661813f1
|
@ -1575,7 +1575,7 @@ ProcVidModeGetGammaRamp(ClientPtr client)
|
||||||
xXF86VidModeGetGammaRampReply rep = {
|
xXF86VidModeGetGammaRampReply rep = {
|
||||||
.type = X_Reply,
|
.type = X_Reply,
|
||||||
.sequenceNumber = client->sequence,
|
.sequenceNumber = client->sequence,
|
||||||
.length = (length >> 1) * 3,
|
.length = bytes_to_int32(ramplen),
|
||||||
.size = stuff->size
|
.size = stuff->size
|
||||||
};
|
};
|
||||||
if (client->swapped) {
|
if (client->swapped) {
|
||||||
|
|
Loading…
Reference in New Issue