Module: wine Branch: master Commit: 50130fdfdb4bfd72d770530954c38d9f2fbc9b17 URL: http://source.winehq.org/git/wine.git/?a=commit;h=50130fdfdb4bfd72d770530954...
Author: Ivan Gyurdiev ivg231@gmail.com Date: Tue Oct 31 03:20:48 2006 -0500
wined3d: Add D3DPATCHEDGESTYLE to the WINED3D namespace.
---
dlls/wined3d/device.c | 2 +- dlls/wined3d/stateblock.c | 2 +- include/wine/wined3d_types.h | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 0ee1045..b2b693c 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4463,7 +4463,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl
case WINED3DRS_PATCHEDGESTYLE : { - if(D3DPATCHEDGE_DISCRETE != Value) + if(WINED3DPATCHEDGE_DISCRETE != Value) ERR("(%p)->(%s,%d) not yet implemented\n", This, debug_d3drenderstate(State), Value); break; } diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index 0a850e5..a724749 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -925,7 +925,7 @@ static HRESULT WINAPI IWineD3DStateBloc IWineD3DDevice_SetRenderState(device, WINED3DRS_POINTSCALE_C, tmpfloat.d); IWineD3DDevice_SetRenderState(device, WINED3DRS_MULTISAMPLEANTIALIAS, TRUE); IWineD3DDevice_SetRenderState(device, WINED3DRS_MULTISAMPLEMASK, 0xFFFFFFFF); - IWineD3DDevice_SetRenderState(device, WINED3DRS_PATCHEDGESTYLE, D3DPATCHEDGE_DISCRETE); + IWineD3DDevice_SetRenderState(device, WINED3DRS_PATCHEDGESTYLE, WINED3DPATCHEDGE_DISCRETE); tmpfloat.f = 1.0f; IWineD3DDevice_SetRenderState(device, WINED3DRS_PATCHSEGMENTS, tmpfloat.d); IWineD3DDevice_SetRenderState(device, WINED3DRS_DEBUGMONITORTOKEN, 0xbaadcafe); diff --git a/include/wine/wined3d_types.h b/include/wine/wined3d_types.h index 9e26550..800e24e 100644 --- a/include/wine/wined3d_types.h +++ b/include/wine/wined3d_types.h @@ -560,6 +560,13 @@ typedef enum _WINED3DMATERIALCOLORSOURCE WINED3DMCS_FORCE_DWORD = 0x7fffffff } WINED3DMATERIALCOLORSOURCE;
+typedef enum _WINED3DPATCHEDGESTYLE { + WINED3DPATCHEDGE_DISCRETE = 0, + WINED3DPATCHEDGE_CONTINUOUS = 1, + + WINED3DPATCHEDGE_FORCE_DWORD = 0x7fffffff, +} WINED3DPATCHEDGESTYLE; + typedef struct _WINED3DDISPLAYMODE { UINT Width; UINT Height;