mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
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:
parent
d09c4d9116
commit
7527ab493e
1 changed files with 9 additions and 0 deletions
|
@ -142,6 +142,15 @@ static void test_palette_entries(void)
|
||||||
ok(res == 1, "GetPaletteEntries should have returned 1 but returned %d\n", res);
|
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 );
|
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)
|
static void test_halftone_palette(void)
|
||||||
|
|
Loading…
Reference in a new issue