summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-01-09 19:52:00 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-01-09 19:52:00 -0800
commit6844bd2e63490870bab3c469eec6030354ef2865 (patch)
tree7f2b6fa3e2fafcdc888d21ccc60e221e7bd8af42 /Xext
parent0883e838e25227f0af84d2a90979175724166d16 (diff)
More Xv extension byte swapping fixes
Diffstat (limited to 'Xext')
-rw-r--r--Xext/xvdisp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Xext/xvdisp.c b/Xext/xvdisp.c
index 17ff1d788..237ad51c0 100644
--- a/Xext/xvdisp.c
+++ b/Xext/xvdisp.c
@@ -1532,6 +1532,7 @@ SProcXvShmPutImage(ClientPtr client)
swapl(&stuff->gc, n);
swapl(&stuff->shmseg, n);
swapl(&stuff->id, n);
+ swapl(&stuff->offset, n);
swaps(&stuff->src_x, n);
swaps(&stuff->src_y, n);
swaps(&stuff->src_w, n);
@@ -1540,7 +1541,6 @@ SProcXvShmPutImage(ClientPtr client)
swaps(&stuff->drw_y, n);
swaps(&stuff->drw_w, n);
swaps(&stuff->drw_h, n);
- swaps(&stuff->offset, n);
swaps(&stuff->width, n);
swaps(&stuff->height, n);
return XvProcVector[xv_ShmPutImage](client);
@@ -1632,9 +1632,10 @@ SProcXvQueryImageAttributes(ClientPtr client)
char n;
REQUEST(xvQueryImageAttributesReq);
swaps(&stuff->length, n);
+ swapl(&stuff->port, n);
swapl(&stuff->id, n);
swaps(&stuff->width, n);
- swaps(&stuff->width, n);
+ swaps(&stuff->height, n);
return XvProcVector[xv_QueryImageAttributes](client);
}