diff --git a/Xext/xvdisp.c b/Xext/xvdisp.c index 0069530ca5..069af95ea8 100644 --- a/Xext/xvdisp.c +++ b/Xext/xvdisp.c @@ -54,19 +54,6 @@ SOFTWARE. unsigned long XvXRTPort; #endif /* XINERAMA */ -static int -SWriteQueryBestSizeReply(ClientPtr client, xvQueryBestSizeReply * rep) -{ - swaps(&rep->sequenceNumber); - swapl(&rep->length); - swaps(&rep->actual_width); - swaps(&rep->actual_height); - - WriteToClient(client, sz_xvQueryBestSizeReply, rep); - - return Success; -} - static int SWriteQueryPortAttributesReply(ClientPtr client, xvQueryPortAttributesReply * rep) @@ -109,10 +96,6 @@ SWriteListImageFormatsReply(ClientPtr client, xvListImageFormatsReply * rep) return Success; } -#define _WriteQueryBestSizeReply(_c,_d) \ - if ((_c)->swapped) SWriteQueryBestSizeReply(_c, _d); \ - else WriteToClient(_c, sz_xvQueryBestSizeReply, _d) - #define _WriteQueryPortAttributesReply(_c,_d) \ if ((_c)->swapped) SWriteQueryPortAttributesReply(_c, _d); \ else WriteToClient(_c, sz_xvQueryPortAttributesReply, _d) @@ -667,8 +650,14 @@ ProcXvQueryBestSize(ClientPtr client) .actual_height = actual_height }; - _WriteQueryBestSizeReply(client, &rep); + if (client->swapped) { + swaps(&rep.sequenceNumber); + swapl(&rep.length); + swaps(&rep.actual_width); + swaps(&rep.actual_height); + } + WriteToClient(client, sz_xvQueryBestSizeReply, &rep); return Success; }