gdi32/tests: Test writing to the default palette.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2018-06-21 08:57:07 -05:00 committed by Alexandre Julliard
parent d09c4d9116
commit 7527ab493e
1 changed files with 9 additions and 0 deletions

View File

@ -142,6 +142,15 @@ static void test_palette_entries(void)
ok(res == 1, "GetPaletteEntries should have returned 1 but returned %d\n", res);
ok( palEntry.peFlags == getEntryResult.peFlags, "palEntry.peFlags (%#x) != getEntryResult.peFlags (%#x)\n", palEntry.peFlags, getEntryResult.peFlags );
/* Try setting the system palette */
hpal = GetStockObject(DEFAULT_PALETTE);
res = SetPaletteEntries(hpal, 0, 1, &palEntry);
ok(!res, "SetPaletteEntries() should have failed\n");
res = GetPaletteEntries(hpal, 0, 1, &getEntryResult);
ok(res == 1, "GetPaletteEntries should have returned 1 but returned %d\n", res);
ok(memcmp(&palEntry, &getEntryResult, sizeof(PALETTEENTRY)), "entries should not match\n");
}
static void test_halftone_palette(void)