[PATCH] WineD3D: Advertise a few line caps=0A=

unknown (none) stefan at .
Tue Aug 19 16:34:54 CDT 2008


=0A=
I see nothing wrong with that, those features are implemented=0A=
---=0A=
 dlls/wined3d/directx.c      |   14 ++++++++------=0A=
 include/d3d9caps.h          |    1 +=0A=
 include/wine/wined3d_caps.h |    1 +=0A=
 3 files changed, 10 insertions(+), 6 deletions(-)=0A=
=0A=
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c=0A=
index 7742347..c897e70 100644=0A=
--- a/dlls/wined3d/directx.c=0A=
+++ b/dlls/wined3d/directx.c=0A=
@@ -3252,12 +3252,14 @@ static HRESULT WINAPI =
IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,=0A=
     } else=0A=
         pCaps->VolumeTextureAddressCaps =3D 0;=0A=
 =0A=
-    pCaps->LineCaps =3D WINED3DLINECAPS_TEXTURE |=0A=
-                      WINED3DLINECAPS_ZTEST;=0A=
-                      /* FIXME: Add=0A=
-                        WINED3DLINECAPS_BLEND=0A=
-                        WINED3DLINECAPS_ALPHACMP=0A=
-                        WINED3DLINECAPS_FOG */=0A=
+    pCaps->LineCaps =3D WINED3DLINECAPS_TEXTURE       |=0A=
+                      WINED3DLINECAPS_ZTEST         |=0A=
+                      WINED3DLINECAPS_BLEND         |=0A=
+                      WINED3DLINECAPS_ALPHACMP      |=0A=
+                      WINED3DLINECAPS_FOG;=0A=
+    /* WINED3DLINECAPS_ANTIALIAS is not supported on Windows, and dx =
and gl seem to have a different=0A=
+     * idea how generating the smoothing alpha values works; the result =
is different=0A=
+     */=0A=
 =0A=
     pCaps->MaxTextureWidth  =3D GL_LIMITS(texture_size);=0A=
     pCaps->MaxTextureHeight =3D GL_LIMITS(texture_size);=0A=
diff --git a/include/d3d9caps.h b/include/d3d9caps.h=0A=
index c66d291..8ed6598 100644=0A=
--- a/include/d3d9caps.h=0A=
+++ b/include/d3d9caps.h=0A=
@@ -67,6 +67,7 @@=0A=
 #define D3DLINECAPS_BLEND             0x04=0A=
 #define D3DLINECAPS_ALPHACMP          0x08=0A=
 #define D3DLINECAPS_FOG               0x10=0A=
+#define D3DLINECAPS_ANTIALIAS         0x20=0A=
 =0A=
 #define D3DPBLENDCAPS_ZERO            0x00000001=0A=
 #define D3DPBLENDCAPS_ONE             0x00000002=0A=
diff --git a/include/wine/wined3d_caps.h b/include/wine/wined3d_caps.h=0A=
index 91fa788..cb55af2 100644=0A=
--- a/include/wine/wined3d_caps.h=0A=
+++ b/include/wine/wined3d_caps.h=0A=
@@ -53,6 +53,7 @@=0A=
 #define WINED3DLINECAPS_BLEND                               0x00000004=0A=
 #define WINED3DLINECAPS_ALPHACMP                            0x00000008=0A=
 #define WINED3DLINECAPS_FOG                                 0x00000010=0A=
+#define WINED3DLINECAPS_ANTIALIAS                           0x00000020;=0A=
 =0A=
 #define WINED3DMAX30SHADERINSTRUCTIONS                      32768=0A=
 #define WINED3DMIN30SHADERINSTRUCTIONS                      512=0A=
-- =0A=
1.5.6.4=0A=
=0A=

------=_NextPart_000_0205_01C90793.DCCA6B50--




More information about the wine-patches mailing list