Go to the source code of this file.
◆ START_TEST()
Definition at line 136 of file SetDIBits.c.
137{
140}
void Test_SetDIBits_1bpp()
◆ Test_SetDIBits()
Definition at line 10 of file SetDIBits.c.
11{
15 char bits1bpp[] = {0x80, 0, 0, 0};
18
20
32
34 ok(
hbmp!=
NULL,
"Failed to create a DIB section\n");
35
40
42 ok(
ret == 1,
"Copied %i scanlines\n",
ret);
43
44 ok(dibBuffer[0] == 0,
"Wrong color 0x%08x after SetDIBits\n", (
unsigned int)dibBuffer[0]);
45 ok(dibBuffer[1] == 0xFF00FF,
"Wrong color 0x%08x after SetDIBits\n", (
unsigned int)dibBuffer[1]);
46
48}
BITMAPINFOHEADER bmiHeader
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
int WINAPI SetDIBits(_In_opt_ HDC, _In_ HBITMAP, _In_ UINT, _In_ UINT, _In_ CONST VOID *, _In_ CONST BITMAPINFO *, _In_ UINT)
Referenced by START_TEST().
◆ Test_SetDIBits_1bpp()
void Test_SetDIBits_1bpp |
( |
| ) |
|
Definition at line 50 of file SetDIBits.c.
51{
55 char bits1bpp[] = {0x80, 0, 0, 0};
59
62 {
63 trace(
"No device contexr !?\n");
64 return;
65 }
66
68
83
85 ok(
hbmp!=
NULL,
"Failed to create a monochrome bitmap\n");
86
88 ok(
ret == 1,
"Copied %i scanlines\n",
ret);
89
91 ok(
hbmp !=
NULL,
"Could not select the bitmap into the context.\n");
96
98
99
103
105 ok(
ret == 1,
"Copied %i scanlines\n",
ret);
106
108 ok(
hbmp !=
NULL,
"Could not select the bitmap into the context.\n");
113
115
116
120
122 ok(
ret == 1,
"Copied %i scanlines\n",
ret);
123
125 ok(
hbmp !=
NULL,
"Could not select the bitmap into the context.\n");
130
134}
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI DeleteDC(_In_ HDC)
Referenced by START_TEST().