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:
parent
78179ae827
commit
42c2e14b25
|
@ -2074,6 +2074,8 @@ SProcRenderSetPictureClipRectangles (ClientPtr client)
|
||||||
REQUEST(xRenderSetPictureClipRectanglesReq);
|
REQUEST(xRenderSetPictureClipRectanglesReq);
|
||||||
swaps(&stuff->length, n);
|
swaps(&stuff->length, n);
|
||||||
swapl(&stuff->picture, n);
|
swapl(&stuff->picture, n);
|
||||||
|
swaps(&stuff->xOrigin, n);
|
||||||
|
swaps(&stuff->yOrigin, n);
|
||||||
SwapRestS(stuff);
|
SwapRestS(stuff);
|
||||||
return (*ProcRenderVector[stuff->renderReqType]) (client);
|
return (*ProcRenderVector[stuff->renderReqType]) (client);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue