Revert "randr: ProcRRQueryOutputProperty(): use SwapShort()/SwapLong()"
This reverts commit 73467faeb2
.
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2012>
This commit is contained in:
parent
fc7858a458
commit
8650028e59
|
@ -495,16 +495,14 @@ ProcRRQueryOutputProperty(ClientPtr client)
|
||||||
swaps(&rep.sequenceNumber);
|
swaps(&rep.sequenceNumber);
|
||||||
swapl(&rep.length);
|
swapl(&rep.length);
|
||||||
}
|
}
|
||||||
|
WriteToClient(client, sizeof(xRRQueryOutputPropertyReply), &rep);
|
||||||
if (prop->num_valid) {
|
if (prop->num_valid) {
|
||||||
memcpy(extra, prop->valid_values, prop->num_valid * sizeof(INT32));
|
memcpy(extra, prop->valid_values, prop->num_valid * sizeof(INT32));
|
||||||
if (client->swapped)
|
client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
|
||||||
SwapLongs((CARD32*)extra, prop->num_valid);
|
WriteSwappedDataToClient(client, prop->num_valid * sizeof(INT32),
|
||||||
}
|
extra);
|
||||||
|
|
||||||
WriteToClient(client, sizeof(xRRQueryOutputPropertyReply), &rep);
|
|
||||||
WriteToClient(client, prop->num_valid * sizeof(INT32), extra);
|
|
||||||
free(extra);
|
free(extra);
|
||||||
|
}
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue