[01/10] wined3d: Add WINED3DLINECAPS flags and use them
H. Verbeet
hverbeet at gmail.com
Thu Feb 15 06:31:26 CST 2007
Changelog:
- Add WINED3DLINECAPS flags and use them
-------------- next part --------------
---
dlls/wined3d/directx.c | 10 +++++-----
include/wine/wined3d_caps.h | 6 ++++++
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 9e128bf..3a36d56 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -2093,12 +2093,12 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
} else
*pCaps->VolumeTextureAddressCaps = 0;
- *pCaps->LineCaps = D3DLINECAPS_TEXTURE |
- D3DLINECAPS_ZTEST;
+ *pCaps->LineCaps = WINED3DLINECAPS_TEXTURE |
+ WINED3DLINECAPS_ZTEST;
/* FIXME: Add
- D3DLINECAPS_BLEND
- D3DLINECAPS_ALPHACMP
- D3DLINECAPS_FOG */
+ WINED3DLINECAPS_BLEND
+ WINED3DLINECAPS_ALPHACMP
+ WINED3DLINECAPS_FOG */
*pCaps->MaxTextureWidth = GL_LIMITS(texture_size);
*pCaps->MaxTextureHeight = GL_LIMITS(texture_size);
diff --git a/include/wine/wined3d_caps.h b/include/wine/wined3d_caps.h
index 8456705..5cb95dd 100644
--- a/include/wine/wined3d_caps.h
+++ b/include/wine/wined3d_caps.h
@@ -19,6 +19,12 @@
#ifndef __WINE_WINED3D_CAPS_H
#define __WINE_WINED3D_CAPS_H
+#define WINED3DLINECAPS_TEXTURE 0x00000001
+#define WINED3DLINECAPS_ZTEST 0x00000002
+#define WINED3DLINECAPS_BLEND 0x00000004
+#define WINED3DLINECAPS_ALPHACMP 0x00000008
+#define WINED3DLINECAPS_FOG 0x00000010
+
#define WINED3DPBLENDCAPS_ZERO 0x00000001
#define WINED3DPBLENDCAPS_ONE 0x00000002
#define WINED3DPBLENDCAPS_SRCCOLOR 0x00000004
More information about the wine-patches
mailing list