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)
12 # include <sys/types.h>
13 # ifdef HAVE_SYS_IPC_H
16 # ifdef HAVE_SYS_SHM_H
20 #endif /* defined(HAVE_LIBXXSHM) */
22 #ifdef HAVE_LIBXXF86VM
23 # include "ts_xf86vmode.h"
24 extern XF86VidModeModeInfo *orig_mode;
25 #endif /* defined(HAVE_LIBXXF86VM) */
27 extern void xf86vmode_setdisplaymode(DWORD,DWORD);
28 extern void xf86vmode_restore();
31 #include "ts_xvideo.h"
33 /* Fake type so that NOT to have too many #ifdef XVideo lying around */
39 #include "ddraw_private.h"
43 extern ICOM_VTABLE(IDirectDraw) xlib_ddvt;
44 extern ICOM_VTABLE(IDirectDraw2) xlib_dd2vt;
45 extern ICOM_VTABLE(IDirectDraw4) xlib_dd4vt;
46 extern ICOM_VTABLE(IDirectDraw7) xlib_dd7vt;
47 extern ICOM_VTABLE(IDirectDrawPalette) xlib_ddpalvt;
48 extern ICOM_VTABLE(IDirectDrawSurface4) xlib_dds4vt;
50 typedef struct x11_dd_private {
52 int xshm_active, xshm_compl;
53 #endif /* defined(HAVE_LIBXXSHM) */
59 void *device_capabilities;
62 typedef struct x11_dp_private {
63 BOOL installed; /* is colormap installed */
64 Colormap cm; /* the X11 Colormap associated */
67 extern HRESULT WINAPI Xlib_IDirectDrawPaletteImpl_SetEntries(LPDIRECTDRAWPALETTE,DWORD,DWORD,DWORD,LPPALETTEENTRY);
68 extern ULONG WINAPI Xlib_IDirectDrawPaletteImpl_Release(LPDIRECTDRAWPALETTE iface);
70 typedef struct x11_ds_private {
75 /* The 'image' field should be in FIRST !!!! The Flip function depends on that... */
80 LPDIRECTDRAWSURFACE dest_surface;
84 XShmSegmentInfo shminfo;
91 extern int XShmErrorFlag;
93 #endif /* __WINE_DDRAW_X11_PRIVATE_H */