Module: wine Branch: master Commit: da354c6dfa5f1b09ec15ee92717b3f367bfbdbf0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=da354c6dfa5f1b09ec15ee9271...
Author: H. Verbeet hverbeet@gmail.com Date: Thu Feb 15 13:31:26 2007 +0100
wined3d: Add WINED3DLINECAPS flags and use them.
---
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