diff options
author | Franklin Wei <git@fwei.tk> | 2017-01-21 15:18:31 -0500 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-12-23 21:01:26 -0500 |
commit | a855d6202536ff28e5aae4f22a0f31d8f5b325d0 (patch) | |
tree | 8c75f224dd64ed360505afa8843d016b0d75000b /apps/plugins/sdl/src/video/Xext/Xv/Xvlibint.h | |
parent | 01c6dcf6c7b9bb1ad2fa0450f99bacc5f3d3e04b (diff) | |
download | rockbox-a855d6202536ff28e5aae4f22a0f31d8f5b325d0.tar.gz rockbox-a855d6202536ff28e5aae4f22a0f31d8f5b325d0.zip |
Port of Duke Nukem 3D
This ports Fabien Sanglard's Chocolate Duke to run on a version of SDL
for Rockbox.
Change-Id: I8f2c4c78af19de10c1633ed7bb7a997b43256dd9
Diffstat (limited to 'apps/plugins/sdl/src/video/Xext/Xv/Xvlibint.h')
-rw-r--r-- | apps/plugins/sdl/src/video/Xext/Xv/Xvlibint.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/apps/plugins/sdl/src/video/Xext/Xv/Xvlibint.h b/apps/plugins/sdl/src/video/Xext/Xv/Xvlibint.h new file mode 100644 index 0000000000..20df706dc7 --- /dev/null +++ b/apps/plugins/sdl/src/video/Xext/Xv/Xvlibint.h | |||
@@ -0,0 +1,81 @@ | |||
1 | /*********************************************************** | ||
2 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts, | ||
3 | and the Massachusetts Institute of Technology, Cambridge, Massachusetts. | ||
4 | |||
5 | All Rights Reserved | ||
6 | |||
7 | Permission to use, copy, modify, and distribute this software and its | ||
8 | documentation for any purpose and without fee is hereby granted, | ||
9 | provided that the above copyright notice appear in all copies and that | ||
10 | both that copyright notice and this permission notice appear in | ||
11 | supporting documentation, and that the names of Digital or MIT not be | ||
12 | used in advertising or publicity pertaining to distribution of the | ||
13 | software without specific, written prior permission. | ||
14 | |||
15 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
16 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
17 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
18 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
19 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
20 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
21 | SOFTWARE. | ||
22 | |||
23 | ******************************************************************/ | ||
24 | /* $XFree86: xc/lib/Xv/Xvlibint.h,v 1.5 2001/07/25 15:04:53 dawes Exp $ */ | ||
25 | |||
26 | #ifndef XVLIBINT_H | ||
27 | #define XVLIBINT_H | ||
28 | /* | ||
29 | ** File: | ||
30 | ** | ||
31 | ** Xvlibint.h --- Xv library internal header file | ||
32 | ** | ||
33 | ** Author: | ||
34 | ** | ||
35 | ** David Carver (Digital Workstation Engineering/Project Athena) | ||
36 | ** | ||
37 | ** Revisions: | ||
38 | ** | ||
39 | ** 01.24.91 Carver | ||
40 | ** - version 1.4 upgrade | ||
41 | ** | ||
42 | */ | ||
43 | |||
44 | #define NEED_REPLIES | ||
45 | |||
46 | /* Apparently some X11 systems can't include this multiple times... */ | ||
47 | #ifndef SDL_INCLUDED_XLIBINT_H | ||
48 | #define SDL_INCLUDED_XLIBINT_H 1 | ||
49 | #include <X11/Xlibint.h> | ||
50 | #endif | ||
51 | |||
52 | #include "../extensions/Xvproto.h" | ||
53 | #include "../extensions/Xvlib.h" | ||
54 | |||
55 | #if !defined(UNIXCPP) | ||
56 | #define XvGetReq(name, req) \ | ||
57 | WORD64ALIGN\ | ||
58 | if ((dpy->bufptr + SIZEOF(xv##name##Req)) > dpy->bufmax)\ | ||
59 | _XFlush(dpy);\ | ||
60 | req = (xv##name##Req *)(dpy->last_req = dpy->bufptr);\ | ||
61 | req->reqType = info->codes->major_opcode;\ | ||
62 | req->xvReqType = xv_##name; \ | ||
63 | req->length = (SIZEOF(xv##name##Req))>>2;\ | ||
64 | dpy->bufptr += SIZEOF(xv##name##Req);\ | ||
65 | dpy->request++ | ||
66 | |||
67 | #else /* non-ANSI C uses empty comment instead of "##" for token concatenation */ | ||
68 | #define XvGetReq(name, req) \ | ||
69 | WORD64ALIGN\ | ||
70 | if ((dpy->bufptr + SIZEOF(xv/**/name/**/Req)) > dpy->bufmax)\ | ||
71 | _XFlush(dpy);\ | ||
72 | req = (xv/**/name/**/Req *)(dpy->last_req = dpy->bufptr);\ | ||
73 | req->reqType = info->codes->major_opcode;\ | ||
74 | req->xvReqType = xv_/**/name;\ | ||
75 | req->length = (SIZEOF(xv/**/name/**/Req))>>2;\ | ||
76 | dpy->bufptr += SIZEOF(xv/**/name/**/Req);\ | ||
77 | dpy->request++ | ||
78 | #endif | ||
79 | |||
80 | |||
81 | #endif /* XVLIBINT_H */ | ||