From: Elizabeth Figura zfigura@codeweavers.com
Based on a patch by Andrew D'Addesio. --- dlls/ddraw/ddraw.c | 21 ++++++++------------- dlls/ddraw/tests/ddraw7.c | 4 ++-- 2 files changed, 10 insertions(+), 15 deletions(-)
diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c index 179b677d6d6..e1ef853f19f 100644 --- a/dlls/ddraw/ddraw.c +++ b/dlls/ddraw/ddraw.c @@ -52,28 +52,23 @@ static struct enum_device_entry DWORD unsupported_caps; } device_list7[] = { - /* T&L HAL device */ { - "WINE Direct3D7 Hardware Transform and Lighting acceleration using WineD3D", - "Wine D3D7 T&L HAL", - &IID_IDirect3DTnLHalDevice, - 0, + "WINE Direct3D7 RGB Software Emulation using WineD3D", + "Wine D3D7 RGB", + &IID_IDirect3DRGBDevice, + D3DDEVCAPS_HWTRANSFORMANDLIGHT | D3DDEVCAPS_DRAWPRIMITIVES2EX | D3DDEVCAPS_HWRASTERIZATION, }, - - /* HAL device */ { "WINE Direct3D7 Hardware acceleration using WineD3D", "Direct3D HAL", &IID_IDirect3DHALDevice, D3DDEVCAPS_HWTRANSFORMANDLIGHT, }, - - /* RGB device */ { - "WINE Direct3D7 RGB Software Emulation using WineD3D", - "Wine D3D7 RGB", - &IID_IDirect3DRGBDevice, - D3DDEVCAPS_HWTRANSFORMANDLIGHT | D3DDEVCAPS_DRAWPRIMITIVES2EX | D3DDEVCAPS_HWRASTERIZATION, + "WINE Direct3D7 Hardware Transform and Lighting acceleration using WineD3D", + "Wine D3D7 T&L HAL", + &IID_IDirect3DTnLHalDevice, + 0, }, };
diff --git a/dlls/ddraw/tests/ddraw7.c b/dlls/ddraw/tests/ddraw7.c index 2306caba3cc..1c84ce9333a 100644 --- a/dlls/ddraw/tests/ddraw7.c +++ b/dlls/ddraw/tests/ddraw7.c @@ -19898,7 +19898,7 @@ static HRESULT WINAPI test_enum_devices_caps_callback(char *device_desc, char *d { if (IsEqualGUID(&device_desc7->deviceGUID, &IID_IDirect3DTnLHalDevice)) { - todo_wine ok(enum_devices_index == 2, "Expected index %u.\n", enum_devices_index); + ok(enum_devices_index == 2, "Expected index %u.\n", enum_devices_index); todo_wine ok(!strcmp(device_name, "Direct3D T&L HAL"), "Got name %s.\n", debugstr_a(device_name));
ok(device_desc7->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT, @@ -19918,7 +19918,7 @@ static HRESULT WINAPI test_enum_devices_caps_callback(char *device_desc, char *d } else if (IsEqualGUID(&device_desc7->deviceGUID, &IID_IDirect3DRGBDevice)) { - todo_wine ok(enum_devices_index == 0, "Expected index %u.\n", enum_devices_index); + ok(enum_devices_index == 0, "Expected index %u.\n", enum_devices_index); todo_wine ok(!strcmp(device_name, "RGB Emulation"), "Got name %s.\n", debugstr_a(device_name));
ok((device_desc7->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT) == 0,