mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user