mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
gdi32/tests: win9x doesn't return the correct number of colours used with dib sections created via DIB_PAL_COLORS.
This commit is contained in:
parent
240651e0c1
commit
a88e6e0182
@ -721,7 +721,8 @@ static void test_dibsections(void)
|
||||
hdib = CreateDIBSection(hdc, pbmi, DIB_PAL_COLORS, (void**)&bits, NULL, 0);
|
||||
ok(hdib != NULL, "CreateDIBSection failed\n");
|
||||
ok(GetObject(hdib, sizeof(DIBSECTION), &dibsec) != 0, "GetObject failed for DIB Section\n");
|
||||
ok(dibsec.dsBmih.biClrUsed == 2,
|
||||
ok(dibsec.dsBmih.biClrUsed == 2 ||
|
||||
broken(dibsec.dsBmih.biClrUsed == 0), /* win9x */
|
||||
"created DIBSection: wrong biClrUsed field: %u, should be: %u\n", dibsec.dsBmih.biClrUsed, 2);
|
||||
|
||||
/* The colour table has already been grabbed from the dc, so we select back the
|
||||
@ -813,7 +814,8 @@ static void test_dibsections(void)
|
||||
hdib = CreateDIBSection(hdc, pbmi, DIB_PAL_COLORS, (void**)&bits, NULL, 0);
|
||||
ok(hdib != NULL, "CreateDIBSection failed\n");
|
||||
ok(GetObject(hdib, sizeof(DIBSECTION), &dibsec) != 0, "GetObject failed for DIB Section\n");
|
||||
ok(dibsec.dsBmih.biClrUsed == 256,
|
||||
ok(dibsec.dsBmih.biClrUsed == 256 ||
|
||||
broken(dibsec.dsBmih.biClrUsed == 0), /* win9x */
|
||||
"created DIBSection: wrong biClrUsed field: %u, should be: %u\n", dibsec.dsBmih.biClrUsed, 256);
|
||||
|
||||
test_dib_info(hdib, bits, &pbmi->bmiHeader);
|
||||
|
Loading…
Reference in New Issue
Block a user