Make DirectDraw compile with DGA2 present.
[wine] / dlls / ddraw / dga_private.h
1 #ifndef __WINE_DDRAW_DGA_PRIVATE_H
2 #define __WINE_DDRAW_DGA_PRIVATE_H
3
4 #include "ddraw_private.h"
5 #include "x11_private.h"
6
7 #include "ts_xf86dga.h"
8 #ifdef HAVE_LIBXXF86DGA2
9 # include "ts_xf86dga2.h"
10 #endif /* defined(HAVE_LIBXXF86DGA2) */
11
12 #ifdef HAVE_LIBXXF86VM
13 # include "ts_xf86vmode.h"
14 extern XF86VidModeModeInfo *orig_mode;
15 #endif /* defined(HAVE_LIBXXF86VM) */
16
17 extern ICOM_VTABLE(IDirectDrawSurface4) dga_dds4vt;
18 #ifdef HAVE_LIBXXF86DGA2
19 extern ICOM_VTABLE(IDirectDrawSurface4) dga2_dds4vt;
20 #endif /* defined(HAVE_LIBXXF86DGA2) */
21
22 extern ICOM_VTABLE(IDirectDraw)         dga_ddvt;
23 extern ICOM_VTABLE(IDirectDrawPalette)  dga_ddpalvt;
24
25 typedef struct dga_dd_private {
26     DWORD       fb_height;              /* height of the viewport */
27     DWORD       fb_width;               /* width of the viewport */
28     caddr_t     fb_addr;                /* start address of the framebuffer */
29     DWORD       fb_memsize;             /* total memory on the card */
30     DWORD       vpmask;                 /* viewports in use flag bitmap */
31     DWORD       version;                /* DGA version */
32 #ifdef HAVE_LIBXXF86DGA2
33     XDGADevice  *dev;
34     XDGAMode    *modes;
35     int         num_modes;
36 #endif
37 } dga_dd_private;
38
39 typedef x11_dp_private dga_dp_private;  /* reuse X11 palette stuff */
40
41 typedef struct dga_ds_private {
42     DWORD       fb_height;
43 } dga_ds_private;
44
45 #ifdef HAVE_LIBXXF86DGA2
46 extern void _DGA_Initialize_FrameBuffer(IDirectDrawImpl *This, int mode);
47 #endif
48
49 #endif /* __WINE_DDRAW_DGA_PRIVATE_H */