Release 20030408.
[wine/gsoc-2012-control.git] / dlls / x11drv / x11ddraw.h
blobcb173f415843d173121691e0294e3a14bc65ca0f
1 /*
2 * DirectDraw HAL base interface
4 * Copyright 2001 TransGaming Technologies, Inc.
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.
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.
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
20 #ifndef __WINE_X11DDRAW_H
21 #define __WINE_X11DDRAW_H
23 #ifndef __WINE_CONFIG_H
24 # error You must include config.h to use this header
25 #endif
27 #include "ddrawi.h"
29 extern LPDDRAWI_DDRAWSURFACE_LCL X11DRV_DD_Primary;
30 extern LPDDRAWI_DDRAWSURFACE_GBL X11DRV_DD_PrimaryGbl;
31 extern HWND X11DRV_DD_PrimaryWnd;
32 extern HBITMAP X11DRV_DD_PrimaryDIB;
33 extern BOOL X11DRV_DD_IsDirect;
35 void X11DRV_DDHAL_SwitchMode(DWORD dwModeIndex, LPVOID fb_addr, LPVIDMEM fb_mem);
36 void X11DRV_DDHAL_SetPalEntries(Colormap pal, DWORD dwBase, DWORD dwNumEntries,
37 LPPALETTEENTRY lpEntries);
39 typedef struct _X11DRIVERINFO {
40 const GUID * lpGuid;
41 DWORD dwSize;
42 LPVOID lpvData;
43 struct _X11DRIVERINFO*lpNext;
44 } X11DRIVERINFO,*LPX11DRIVERINFO;
46 typedef struct _X11DEVICE {
47 LPX11DRIVERINFO lpInfo;
48 } X11DEVICE,*LPX11DEVICE;
50 #endif /* __WINE_X11DDRAW_H */