comparison src/video/Xext/Xv/Xvlibint.h @ 1575:3ba88cb7eb1b

Updated dynamic X11 code. See details in Bugzilla #170.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 22 Mar 2006 05:00:59 +0000
parents 6fd39b50dd91
children ecba4bbaf9c2
comparison
equal deleted inserted replaced
1574:0fd72308659e 1575:3ba88cb7eb1b
51 51
52 #if !defined(UNIXCPP) 52 #if !defined(UNIXCPP)
53 #define XvGetReq(name, req) \ 53 #define XvGetReq(name, req) \
54 WORD64ALIGN\ 54 WORD64ALIGN\
55 if ((dpy->bufptr + SIZEOF(xv##name##Req)) > dpy->bufmax)\ 55 if ((dpy->bufptr + SIZEOF(xv##name##Req)) > dpy->bufmax)\
56 p_XFlush(dpy);\ 56 _XFlush(dpy);\
57 req = (xv##name##Req *)(dpy->last_req = dpy->bufptr);\ 57 req = (xv##name##Req *)(dpy->last_req = dpy->bufptr);\
58 req->reqType = info->codes->major_opcode;\ 58 req->reqType = info->codes->major_opcode;\
59 req->xvReqType = xv_##name; \ 59 req->xvReqType = xv_##name; \
60 req->length = (SIZEOF(xv##name##Req))>>2;\ 60 req->length = (SIZEOF(xv##name##Req))>>2;\
61 dpy->bufptr += SIZEOF(xv##name##Req);\ 61 dpy->bufptr += SIZEOF(xv##name##Req);\
63 63
64 #else /* non-ANSI C uses empty comment instead of "##" for token concatenation */ 64 #else /* non-ANSI C uses empty comment instead of "##" for token concatenation */
65 #define XvGetReq(name, req) \ 65 #define XvGetReq(name, req) \
66 WORD64ALIGN\ 66 WORD64ALIGN\
67 if ((dpy->bufptr + SIZEOF(xv/**/name/**/Req)) > dpy->bufmax)\ 67 if ((dpy->bufptr + SIZEOF(xv/**/name/**/Req)) > dpy->bufmax)\
68 p_XFlush(dpy);\ 68 _XFlush(dpy);\
69 req = (xv/**/name/**/Req *)(dpy->last_req = dpy->bufptr);\ 69 req = (xv/**/name/**/Req *)(dpy->last_req = dpy->bufptr);\
70 req->reqType = info->codes->major_opcode;\ 70 req->reqType = info->codes->major_opcode;\
71 req->xvReqType = xv_/**/name;\ 71 req->xvReqType = xv_/**/name;\
72 req->length = (SIZEOF(xv/**/name/**/Req))>>2;\ 72 req->length = (SIZEOF(xv/**/name/**/Req))>>2;\
73 dpy->bufptr += SIZEOF(xv/**/name/**/Req);\ 73 dpy->bufptr += SIZEOF(xv/**/name/**/Req);\