swap xOrigin and yOrigin in SProcRenderSetPictureClipRectangles.

Fixes Xrender clipping rectangles when X server and client are of
different endianness, shown by xterm 225 among others.
This commit is contained in:
Matthieu Herrb 2007-06-15 00:14:02 +02:00
parent 78179ae827
commit 42c2e14b25

View File

@ -2074,6 +2074,8 @@ SProcRenderSetPictureClipRectangles (ClientPtr client)
REQUEST(xRenderSetPictureClipRectanglesReq);
swaps(&stuff->length, n);
swapl(&stuff->picture, n);
swaps(&stuff->xOrigin, n);
swaps(&stuff->yOrigin, n);
SwapRestS(stuff);
return (*ProcRenderVector[stuff->renderReqType]) (client);
}