mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
(1599) 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:
@@ -1571,7 +1571,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) {
|
||||
|
||||
Reference in New Issue
Block a user