Commit 27f52727 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

ddraw/tests: Fix two test failures on W2K/VMware.

parent 3668edcd
...@@ -834,7 +834,9 @@ static void rhw_zero_test(IDirect3DDevice7 *device) ...@@ -834,7 +834,9 @@ static void rhw_zero_test(IDirect3DDevice7 *device)
} }
color = getPixelColor(device, 5, 5); color = getPixelColor(device, 5, 5);
ok(color == 0xffffff, "Got color %08x, expected 00ffffff\n", color); ok(color == 0xffffff ||
broken(color == 0), /* VMware */
"Got color %08x, expected 00ffffff\n", color);
color = getPixelColor(device, 105, 105); color = getPixelColor(device, 105, 105);
ok(color == 0, "Got color %08x, expected 00000000\n", color); ok(color == 0, "Got color %08x, expected 00000000\n", color);
...@@ -2289,7 +2291,9 @@ static void p8_primary_test(void) ...@@ -2289,7 +2291,9 @@ static void p8_primary_test(void)
ddsd.ddpfPixelFormat.dwFlags = DDPF_RGB | DDPF_PALETTEINDEXED8; ddsd.ddpfPixelFormat.dwFlags = DDPF_RGB | DDPF_PALETTEINDEXED8;
U1(ddsd.ddpfPixelFormat).dwRGBBitCount = 8; U1(ddsd.ddpfPixelFormat).dwRGBBitCount = 8;
hr = IDirectDraw_CreateSurface(DirectDraw1, &ddsd, &offscreen, NULL); hr = IDirectDraw_CreateSurface(DirectDraw1, &ddsd, &offscreen, NULL);
ok(hr == DD_OK, "IDirectDraw_CreateSurface returned %08x\n", hr); ok(hr == DD_OK ||
broken(hr == DDERR_INVALIDPIXELFORMAT), /* VMware */
"IDirectDraw_CreateSurface returned %08x\n", hr);
if (FAILED(hr)) goto out; if (FAILED(hr)) goto out;
memset(entries, 0, sizeof(entries)); memset(entries, 0, sizeof(entries));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment