Commit eba26475 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32/tests: Don't test unreliable palette entries.

parent 40658789
...@@ -162,10 +162,10 @@ static void test_halftone_palette(void) ...@@ -162,10 +162,10 @@ static void test_halftone_palette(void)
ok( count == 256 || broken(count <= 20), /* nt 4 */ ok( count == 256 || broken(count <= 20), /* nt 4 */
"wrong size %u\n", count ); "wrong size %u\n", count );
/* first and last 10 match the default palette */ /* first and last 8 match the default palette */
if (count >= 20) if (count >= 20)
{ {
for (i = 0; i < 10; i++) for (i = 0; i < 8; i++)
{ {
ok( entries[i].peRed == defpal[i].peRed && ok( entries[i].peRed == defpal[i].peRed &&
entries[i].peGreen == defpal[i].peGreen && entries[i].peGreen == defpal[i].peGreen &&
...@@ -175,7 +175,7 @@ static void test_halftone_palette(void) ...@@ -175,7 +175,7 @@ static void test_halftone_palette(void)
entries[i].peRed, entries[i].peGreen, entries[i].peBlue, entries[i].peFlags, entries[i].peRed, entries[i].peGreen, entries[i].peBlue, entries[i].peFlags,
defpal[i].peRed, defpal[i].peGreen, defpal[i].peBlue ); defpal[i].peRed, defpal[i].peGreen, defpal[i].peBlue );
} }
for (i = count - 10; i < count; i++) for (i = count - 8; i < count; i++)
{ {
int idx = i - count + 20; int idx = i - count + 20;
ok( entries[i].peRed == defpal[idx].peRed && ok( entries[i].peRed == defpal[idx].peRed &&
......
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