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);
|
||||
swapl(&rep.length);
|
||||
}
|
||||
WriteToClient(client, sizeof(xRRQueryOutputPropertyReply), &rep);
|
||||
if (prop->num_valid) {
|
||||
memcpy(extra, prop->valid_values, prop->num_valid * sizeof(INT32));
|
||||
if (client->swapped)
|
||||
SwapLongs((CARD32*)extra, prop->num_valid);
|
||||
client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
|
||||
WriteSwappedDataToClient(client, prop->num_valid * sizeof(INT32),
|
||||
extra);
|
||||
free(extra);
|
||||
}
|
||||
|
||||
WriteToClient(client, sizeof(xRRQueryOutputPropertyReply), &rep);
|
||||
WriteToClient(client, prop->num_valid * sizeof(INT32), extra);
|
||||
free(extra);
|
||||
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue