[PATCH 1/6] ddraw/tests: Add position tests for D3DPROCESSVERTICES_TRANSFORM.

Henri Verbeet hverbeet at gmail.com
Mon Sep 5 06:16:06 CDT 2016


On 3 September 2016 at 21:42, Stefan Dösinger <stefandoesinger at gmx.at> wrote:
> +    color = get_surface_color(rt, 18, 18);
> +    ok(compare_color(color, 0x00000000, 1), "Got unexpected color %#x\n", color);
> +    color = get_surface_color(rt, 22, 18);
> +    ok(compare_color(color, 0x00000000, 1), "Got unexpected color %#x\n", color);
> +    color = get_surface_color(rt, 18, 22);
> +    ok(compare_color(color, 0x00000000, 1), "Got unexpected color %#x\n", color);
...
> +    color = get_surface_color(rt, 222, 418);
> +    ok(compare_color(color, 0x00000000, 1), "Got unexpected color %#x\n", color);
> +    color = get_surface_color(rt, 218, 422);
> +    ok(compare_color(color, 0x00000000, 1), "Got unexpected color %#x\n", color);
> +    color = get_surface_color(rt, 222, 422);
> +    ok(compare_color(color, 0x00000000, 1), "Got unexpected color %#x\n", color);
These fail on Windows here:
    ddraw1.c:9659: Test failed: Got unexpected color 0xff
    ddraw1.c:9661: Test failed: Got unexpected color 0xff
    ddraw1.c:9663: Test failed: Got unexpected color 0xff
    ddraw1.c:9670: Test failed: Got unexpected color 0xff
    ddraw1.c:9672: Test failed: Got unexpected color 0xff
    ddraw1.c:9674: Test failed: Got unexpected color 0xff

As an aside, that's also why we usually use 0x%08x for colours.



More information about the wine-devel mailing list