Moved most initializations out of the create_desktop function and into
[wine] / dlls / x11drv / x11ddraw.h
1 /*
2  * DirectDraw HAL base interface
3  *
4  * Copyright 2001 TransGaming Technologies, Inc.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20 #ifndef __WINE_X11DDRAW_H
21 #define __WINE_X11DDRAW_H
22
23 #ifndef __WINE_CONFIG_H
24 # error You must include config.h to use this header
25 #endif
26
27 #include <stdarg.h>
28
29 #include "windef.h"
30 #include "winbase.h"
31 #include "wingdi.h"
32 #include "ddrawi.h"
33
34 extern LPDDRAWI_DDRAWSURFACE_LCL X11DRV_DD_Primary;
35 extern LPDDRAWI_DDRAWSURFACE_GBL X11DRV_DD_PrimaryGbl;
36 extern HWND X11DRV_DD_PrimaryWnd;
37 extern HBITMAP X11DRV_DD_PrimaryDIB;
38 extern BOOL X11DRV_DD_IsDirect;
39
40 void X11DRV_DDHAL_SwitchMode(DWORD dwModeIndex, LPVOID fb_addr, LPVIDMEM fb_mem);
41 void X11DRV_DDHAL_SetPalEntries(Colormap pal, DWORD dwBase, DWORD dwNumEntries,
42                                 LPPALETTEENTRY lpEntries);
43
44 typedef struct _X11DRIVERINFO {
45   const GUID *          lpGuid;
46   DWORD                 dwSize;
47   LPVOID                lpvData;
48   struct _X11DRIVERINFO*lpNext;
49 } X11DRIVERINFO,*LPX11DRIVERINFO;
50
51 typedef struct _X11DEVICE {
52   LPX11DRIVERINFO       lpInfo;
53 } X11DEVICE,*LPX11DEVICE;
54
55 #endif /* __WINE_X11DDRAW_H */