diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2007-06-13 22:53:11 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2007-06-13 22:53:11 +0000 |
commit | d6c3cc17b5fdbf6ddcfb35e84b41e17225d0d9d7 (patch) | |
tree | 1cbefc699763e3b4fa8fde106e325042818e768f | |
parent | 0b2b86345ba7256c3c0d649827e07fbada00988c (diff) |
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.
-rw-r--r-- | xserver/render/render.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xserver/render/render.c b/xserver/render/render.c index 55f360a44..c5d681d30 100644 --- a/xserver/render/render.c +++ b/xserver/render/render.c @@ -2071,6 +2071,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); } |