On 22 December 2017 at 16:51, Stefan Dösinger stefan@codeweavers.com wrote:
- U1(rect[0]).x1 = 160;
- U2(rect[0]).y1 = 120;
- U3(rect[0]).x2 = 480;
- U4(rect[0]).y2 = 360;
- hr = IDirect3DViewport_Clear(viewport3, 1, &rect[0], D3DCLEAR_TARGET);
- ok(hr == D3D_OK, "Failed to clear, hr %#x.\n", hr);
- color = get_surface_color(rt, 158, 118);
- ok(compare_color(color, 0x00ffffff, 0), "(158,118) has color %08x\n", color);
- color = get_surface_color(rt, 162, 118);
- ok(compare_color(color, 0x00ffffff, 0), "(162,118) has color %08x\n", color);
- color = get_surface_color(rt, 158, 122);
- ok(compare_color(color, 0x00ffffff, 0), "(158,122) has color %08x\n", color);
- color = get_surface_color(rt, 162, 122);
- ok(compare_color(color, 0x000000ff, 0), "(162,122) has color %08x\n", color);
- color = get_surface_color(rt, 318, 238);
- ok(compare_color(color, 0x000000ff, 0), "(318,238) has color %08x\n", color);
- color = get_surface_color(rt, 322, 238);
- ok(compare_color(color, 0x00ffffff, 0), "(322,328) has color %08x\n", color);
- color = get_surface_color(rt, 318, 242);
- ok(compare_color(color, 0x00ffffff, 0), "(318,242) has color %08x\n", color);
- color = get_surface_color(rt, 322, 242);
- ok(compare_color(color, 0x0000ff00, 0), "(322,242) has color %08x\n", color);
- color = get_surface_color(rt, 478, 358);
- ok(compare_color(color, 0x0000ff00, 0), "(478,358 has color %08x\n", color);
- color = get_surface_color(rt, 482, 358);
- ok(compare_color(color, 0x00ffffff, 0), "(482,358) has color %08x\n", color);
- color = get_surface_color(rt, 478, 362);
- ok(compare_color(color, 0x00ffffff, 0), "(478,362) has color %08x\n", color);
- color = get_surface_color(rt, 482, 362);
- ok(compare_color(color, 0x00ffffff, 0), "(482,362) has color %08x\n", color);
These fail for me on Windows in ddraw1:
ddraw1.c:10895: Test failed: (158,118) has color 000000ff ddraw1.c:10897: Test failed: (162,118) has color 000000ff ddraw1.c:10899: Test failed: (158,122) has color 000000ff ddraw1.c:10901: Test failed: (162,122) has color 0000ff00 ddraw1.c:10904: Test failed: (318,238) has color 0000ff00 ddraw1.c:10906: Test failed: (322,328) has color 0000ff00 ddraw1.c:10908: Test failed: (318,242) has color 0000ff00 ddraw1.c:10915: Test failed: (482,358) has color 000000ff ddraw1.c:10917: Test failed: (478,362) has color 000000ff ddraw1.c:10919: Test failed: (482,362) has color 000000ff
ddraw2,4,7 pass. Windows 7, "AMD Radeon HD 6310 Graphics".