summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@deville.herrb.com>2007-06-15 00:14:02 +0200
committerMatthieu Herrb <matthieu@deville.herrb.com>2007-06-15 00:14:02 +0200
commit42c2e14b254f6f882b3e79444360ab855db43e27 (patch)
tree666f9dc9198b4cb35275492489b508c931612cf9 /render
parent78179ae827bb5d19abb1340084362bc51ad5c1e5 (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.
Diffstat (limited to 'render')
-rw-r--r--render/render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/render/render.c b/render/render.c
index 348d4c611..caaa2781c 100644
--- a/render/render.c
+++ b/render/render.c
@@ -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);
}