Call TSXFlush after setting DGA palette, so it updates immediately.
[wine] / dlls / ddraw / dga2_private.h
1 #ifndef __WINE_DDRAW_DGA2_PRIVATE_H
2 #define __WINE_DDRAW_DGA2_PRIVATE_H
3
4 #include "ddraw_private.h"
5 #include "x11_private.h"
6 #include "dga_private.h"
7
8 #include "ts_xf86dga.h"
9 #include "ts_xf86dga2.h"
10
11 extern ICOM_VTABLE(IDirectDrawSurface4) dga2_dds4vt;
12 extern ICOM_VTABLE(IDirectDraw)         dga2_ddvt;
13
14 typedef struct dga2_dd_private {
15   /* Reuse of the DGA code */
16   dga_dd_private DGA;
17   
18   XDGADevice    *dev;
19   XDGAMode      *modes;
20   int           num_modes;
21 } dga2_dd_private;
22
23 typedef x11_dp_private dga2_dp_private; /* reuse X11 palette stuff */
24 typedef dga_ds_private dga2_ds_private; /* reuse of DGA1 surface stuff */
25
26 extern void _DGA2_Initialize_FrameBuffer(IDirectDrawImpl *This, int mode);
27
28 #endif /* __WINE_DDRAW_DGA2_PRIVATE_H */