On 3 September 2016 at 21:42, Stefan Dösinger <stefandoesinger(a)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.