summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2007-06-13 22:53:11 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2007-06-13 22:53:11 +0000
commitd6c3cc17b5fdbf6ddcfb35e84b41e17225d0d9d7 (patch)
tree1cbefc699763e3b4fa8fde106e325042818e768f
parent0b2b86345ba7256c3c0d649827e07fbada00988c (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.c2
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);
}