From 50130fdfdb4bfd72d770530954c38d9f2fbc9b17 Mon Sep 17 00:00:00 2001 From: Ivan Gyurdiev Date: Tue, 31 Oct 2006 03:20:48 -0500 Subject: [PATCH] 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 0ee1045188a..b2b693c1e67 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4463,7 +4463,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W 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 0a850e53910..a7247490933 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -925,7 +925,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat 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 9e26550aa34..800e24e4a15 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;