15 char bits1bpp[] = {0x80, 0, 0, 0};
34 ok(
hbmp!=
NULL,
"Failed to create a DIB section\n");
42 ok(
ret == 1,
"Copied %i scanlines\n",
ret);
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]);
55 char bits1bpp[] = {0x80, 0, 0, 0};
63 trace(
"No device contexr !?\n");
85 ok(
hbmp!=
NULL,
"Failed to create a monochrome bitmap\n");
88 ok(
ret == 1,
"Copied %i scanlines\n",
ret);
91 ok(
hbmp !=
NULL,
"Could not select the bitmap into the context.\n");
105 ok(
ret == 1,
"Copied %i scanlines\n",
ret);
108 ok(
hbmp !=
NULL,
"Could not select the bitmap into the context.\n");
122 ok(
ret == 1,
"Copied %i scanlines\n",
ret);
125 ok(
hbmp !=
NULL,
"Could not select the bitmap into the context.\n");
void Test_SetDIBits_1bpp()
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
BITMAPINFOHEADER bmiHeader
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
int WINAPI SetDIBits(_In_opt_ HDC, _In_ HBITMAP, _In_ UINT, _In_ UINT, _In_ CONST VOID *, _In_ CONST BITMAPINFO *, _In_ UINT)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI DeleteDC(_In_ HDC)