Commit 8e64efee authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

d3d9/tests: Fix some ok() strings in the fog test.

parent a242d601
...@@ -1026,21 +1026,21 @@ static void fog_test(IDirect3DDevice9 *device) ...@@ -1026,21 +1026,21 @@ static void fog_test(IDirect3DDevice9 *device)
} }
IDirect3DDevice9_Present(device, NULL, NULL, NULL, NULL); IDirect3DDevice9_Present(device, NULL, NULL, NULL, NULL);
color = getPixelColor(device, 160, 360); color = getPixelColor(device, 160, 360);
ok(color == 0x0000FF00 || color == 0x0000FE00, "Reversed %s fog: z=0.1 has color 0x%08x, expected 0x0000ff00\n", mode, color); ok(color == 0x0000FF00 || color == 0x0000FE00, "Reversed %s fog: z=0.1 has color 0x%08x, expected 0x0000ff00 or 0x0000fe00\n", mode, color);
color = getPixelColor(device, 160, 120); color = getPixelColor(device, 160, 120);
r = (color & 0x00ff0000) >> 16; r = (color & 0x00ff0000) >> 16;
g = (color & 0x0000ff00) >> 8; g = (color & 0x0000ff00) >> 8;
b = (color & 0x000000ff); b = (color & 0x000000ff);
ok(r == 0x00 && g >= 0x29 && g <= 0x2d && b >= 0xd2 && b <= 0xd6, ok(r == 0x00 && g >= 0x29 && g <= 0x2d && b >= 0xd2 && b <= 0xd6,
"Reversed %s fog: z=0.7 has color 0x%08x, expected\n", mode, color); "Reversed %s fog: z=0.7 has color 0x%08x\n", mode, color);
color = getPixelColor(device, 480, 120); color = getPixelColor(device, 480, 120);
r = (color & 0x00ff0000) >> 16; r = (color & 0x00ff0000) >> 16;
g = (color & 0x0000ff00) >> 8; g = (color & 0x0000ff00) >> 8;
b = (color & 0x000000ff); b = (color & 0x000000ff);
ok(r == 0x00 && g >= 0xa8 && g <= 0xac && b >= 0x53 && b <= 0x57, ok(r == 0x00 && g >= 0xa8 && g <= 0xac && b >= 0x53 && b <= 0x57,
"Reversed %s fog: z=0.4 has color 0x%08x, expected\n", mode, color); "Reversed %s fog: z=0.4 has color 0x%08x\n", mode, color);
color = getPixelColor(device, 480, 360); color = getPixelColor(device, 480, 360);
ok(color == 0x000000ff, "Reversed %s fog: z=0.9 has color 0x%08x, expected 0x000000ff\n", mode, color); ok(color == 0x000000ff, "Reversed %s fog: z=0.9 has color 0x%08x, expected 0x000000ff\n", mode, color);
......
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