summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/XvMClibint.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/XvMClibint.h b/src/XvMClibint.h
index b21b966..a6ac5f2 100644
--- a/src/XvMClibint.h
+++ b/src/XvMClibint.h
@@ -9,16 +9,12 @@
#define XvMCCheckExtension(dpy, i, val) \
XextCheckExtension(dpy, i, xvmc_extension_name, val)
+/* names in XvMCproto.h don't match the expectation of Xlib's GetReq* macros,
+ so we have to provide our own implementation */
#define XvMCGetReq(name, req) \
- WORD64ALIGN\
- if ((dpy->bufptr + sizeof(xvmc##name##Req)) > dpy->bufmax)\
- _XFlush(dpy);\
- req = (xvmc##name##Req *)(dpy->last_req = dpy->bufptr);\
- req->reqType = info->codes->major_opcode;\
- req->xvmcReqType = xvmc_##name; \
- req->length = sizeof(xvmc##name##Req)>>2;\
- dpy->bufptr += sizeof(xvmc##name##Req);\
- dpy->request++
+ req = (xvmc##name##Req *) _XGetRequest( \
+ dpy, (CARD8) info->codes->major_opcode, sizeof(xvmc##name##Req)); \
+ req->xvmcReqType = xvmc_##name
_XFUNCPROTOBEGIN