Let Int09 routines remember a keystroke's ASCII code, if available.
[wine/multimedia.git] / dlls / ddraw / x11_private.h
blob50ec9496a04a4e7eae1eb7c93d8b26a5a31e7df5
1 #ifndef __WINE_DDRAW_X11_PRIVATE_H
2 #define __WINE_DDRAW_X11_PRIVATE_H
4 /* This file contains all X11 private and specific definitions.
5 * It may also be used by all ports that reuse X11 stuff (like XF86 DGA)
6 */
7 #include "ts_xlib.h"
8 #include "ts_xutil.h"
10 #ifdef HAVE_LIBXXSHM
11 # include <sys/types.h>
12 # ifdef HAVE_SYS_IPC_H
13 # include <sys/ipc.h>
14 # endif
15 # ifdef HAVE_SYS_SHM_H
16 # include <sys/shm.h>
17 # endif
18 # include "ts_xshm.h"
19 #endif /* defined(HAVE_LIBXXSHM) */
21 #include "x11drv.h"
23 #include "ddraw_private.h"
25 #include "wine_gl.h"
27 extern ICOM_VTABLE(IDirectDraw) xlib_ddvt;
28 extern ICOM_VTABLE(IDirectDraw2) xlib_dd2vt;
29 extern ICOM_VTABLE(IDirectDraw4) xlib_dd4vt;
30 extern ICOM_VTABLE(IDirectDrawPalette) xlib_ddpalvt;
31 extern ICOM_VTABLE(IDirectDrawSurface4) xlib_dds4vt;
33 typedef struct x11_dd_private {
34 #ifdef HAVE_LIBXXSHM
35 int xshm_active, xshm_compl;
36 #endif /* defined(HAVE_LIBXXSHM) */
37 Window drawable;
38 void *device_capabilities;
39 } x11_dd_private;
41 typedef struct x11_dp_private {
42 BOOL installed; /* is colormap installed */
43 Colormap cm; /* the X11 Colormap associated */
44 } x11_dp_private;
46 extern HRESULT WINAPI Xlib_IDirectDrawPaletteImpl_SetEntries(LPDIRECTDRAWPALETTE,DWORD,DWORD,DWORD,LPPALETTEENTRY);
47 extern ULONG WINAPI Xlib_IDirectDrawPaletteImpl_Release(LPDIRECTDRAWPALETTE iface);
49 typedef struct x11_ds_private {
50 XImage *image;
51 #ifdef HAVE_LIBXXSHM
52 XShmSegmentInfo shminfo;
53 #endif
54 int *oldDIBmap;
55 BOOL opengl_flip;
56 } x11_ds_private;
58 #ifdef HAVE_LIBXXSHM
59 extern int XShmErrorFlag;
60 #endif
61 #endif /* __WINE_DDRAW_X11_PRIVATE_H */