win32knapi: More / improved tests for NtUserSystemParametersInfo, NtGdiSelectBrush, NtGdiSelectBitmap, NtGdiGetFontResourceInfoInternalW, NtGdiDoPalette

svn path=/trunk/; revision=42552
This commit is contained in:
Timo Kreuzer 2009-08-09 11:27:25 +00:00
parent 823cea3689
commit 3979f7432d
10 changed files with 996 additions and 57 deletions

View file

@ -171,23 +171,28 @@ Test_NtGdiCreateDIBSection(PTESTINFO pti)
pbih->biBitCount = 4;
hbmp = NtGdiCreateDIBSection(hDC, NULL, 0, pbmi, 0, cjHeader, 0, 0, &pvBits);
TEST(hbmp != 0);
if (hbmp) DeleteObject(hbmp);
pbih->biBitCount = 8;
hbmp = NtGdiCreateDIBSection(hDC, NULL, 0, pbmi, 0, cjHeader, 0, 0, &pvBits);
TEST(hbmp != 0);
if (hbmp) DeleteObject(hbmp);
cjHeader = pbih->biSize;
pbih->biBitCount = 16;
hbmp = NtGdiCreateDIBSection(hDC, NULL, 0, pbmi, 0, cjHeader, 0, 0, &pvBits);
TEST(hbmp != 0);
if (hbmp) DeleteObject(hbmp);
pbih->biBitCount = 24;
hbmp = NtGdiCreateDIBSection(hDC, NULL, 0, pbmi, 0, cjHeader, 0, 0, &pvBits);
TEST(hbmp != 0);
if (hbmp) DeleteObject(hbmp);
pbih->biBitCount = 32;
hbmp = NtGdiCreateDIBSection(hDC, NULL, 0, pbmi, 0, cjHeader, 0, 0, &pvBits);
TEST(hbmp != 0);
if (hbmp) DeleteObject(hbmp);
/* Test BI_BITFIELDS */
cEntries = 3;