Alexandre Julliard : gdi32/tests: Don't test unreliable palette entries.
Alexandre Julliard
julliard at winehq.org
Thu Jan 9 12:52:50 CST 2014
Module: wine
Branch: master
Commit: eba26475fb49fc59f05562bbe4993097c70cd8d0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=eba26475fb49fc59f05562bbe4993097c70cd8d0
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Jan 9 16:02:14 2014 +0100
gdi32/tests: Don't test unreliable palette entries.
---
dlls/gdi32/tests/palette.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/gdi32/tests/palette.c b/dlls/gdi32/tests/palette.c
index 71da6f9..f95c0d3 100644
--- a/dlls/gdi32/tests/palette.c
+++ b/dlls/gdi32/tests/palette.c
@@ -162,10 +162,10 @@ static void test_halftone_palette(void)
ok( count == 256 || broken(count <= 20), /* nt 4 */
"wrong size %u\n", count );
- /* first and last 10 match the default palette */
+ /* first and last 8 match the default palette */
if (count >= 20)
{
- for (i = 0; i < 10; i++)
+ for (i = 0; i < 8; i++)
{
ok( entries[i].peRed == defpal[i].peRed &&
entries[i].peGreen == defpal[i].peGreen &&
@@ -175,7 +175,7 @@ static void test_halftone_palette(void)
entries[i].peRed, entries[i].peGreen, entries[i].peBlue, entries[i].peFlags,
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;
ok( entries[i].peRed == defpal[idx].peRed &&
More information about the wine-cvs
mailing list