mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:15:58 +00:00
win32knapi: More / improved tests for NtUserSystemParametersInfo, NtGdiSelectBrush, NtGdiSelectBitmap, NtGdiGetFontResourceInfoInternalW, NtGdiDoPalette
svn path=/trunk/; revision=42552
This commit is contained in:
parent
823cea3689
commit
3979f7432d
10 changed files with 996 additions and 57 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue