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)
11 # include <sys/types.h>
12 # ifdef HAVE_SYS_IPC_H
15 # ifdef HAVE_SYS_SHM_H
19 #endif /* defined(HAVE_LIBXXSHM) */
22 #include "ts_xvideo.h"
24 /* Fake type so that NOT to have too many #ifdef XVideo lying around */
30 #include "ddraw_private.h"
34 extern ICOM_VTABLE(IDirectDraw) xlib_ddvt;
35 extern ICOM_VTABLE(IDirectDraw2) xlib_dd2vt;
36 extern ICOM_VTABLE(IDirectDraw4) xlib_dd4vt;
37 extern ICOM_VTABLE(IDirectDrawPalette) xlib_ddpalvt;
38 extern ICOM_VTABLE(IDirectDrawSurface4) xlib_dds4vt;
40 typedef struct x11_dd_private {
42 int xshm_active, xshm_compl;
43 #endif /* defined(HAVE_LIBXXSHM) */
49 void *device_capabilities;
52 typedef struct x11_dp_private {
53 BOOL installed; /* is colormap installed */
54 Colormap cm; /* the X11 Colormap associated */
57 extern HRESULT WINAPI Xlib_IDirectDrawPaletteImpl_SetEntries(LPDIRECTDRAWPALETTE,DWORD,DWORD,DWORD,LPPALETTEENTRY);
58 extern ULONG WINAPI Xlib_IDirectDrawPaletteImpl_Release(LPDIRECTDRAWPALETTE iface);
60 typedef struct x11_ds_private {
65 /* The 'image' field should be in FIRST !!!! The Flip function depends on that... */
70 LPDIRECTDRAWSURFACE dest_surface;
74 XShmSegmentInfo shminfo;
81 extern int XShmErrorFlag;
83 #endif /* __WINE_DDRAW_X11_PRIVATE_H */