13#define DIB_PAL_INDICES 2
29 {
sizeof(
BITMAPINFOHEADER), 4, -4, 1, 8,
BI_RGB, 0, 1, 1, 4, 0},
31 {0,1,2,3, 1,2,3,0, 2,3,0,1, 3,0,1,2},
45 ok(hbr != 0,
"Expected success\n");
48 ok(hbr != 0,
"Expected success\n");
53 ok(hbr == 0,
"Expected failure\n");
57 ok(hbr == 0,
"Expected failure\n");
62 ok(hbr != 0,
"CreateDIBPatternBrushPt failed, skipping tests.\n");
66 ok(
GetObject(hbr,
sizeof(logbrush), &logbrush),
"GetObject() failed\n");
70 "invalid lbHatch. Got %p, expected %p\n", (
PVOID)logbrush.
lbHatch, &PackedDIB);
108 PackedDIB.ajBuffer[0] = 3;
109 PackedDIB.ajBuffer[1] = 2;
110 PackedDIB.ajBuffer[2] = 1;
111 PackedDIB.ajBuffer[3] = 0;
115 ok(hbr != 0,
"CreateSolidBrush failed, skipping tests.\n");
119 ok(
GetObject(hbr,
sizeof(logbrush), &logbrush),
"GetObject() failed\n");
123 "invalid lbHatch. Got %p, expected %p\n", (
PVOID)logbrush.
lbHatch, &PackedDIB);
127 ok(hbrOld != 0,
"CreateSolidBrush failed, skipping tests.\n");
139 ok(hpalOld != 0,
"Expected success, error %ld\n",
GetLastError());
163 {
sizeof(
BITMAPINFOHEADER), 4, 4, 1, 8,
BI_RLE8, 20, 1, 1, 4, 0},
165 {4,0, 0,2,0,1,0,2,3,1, 2,1, 2,2, 1,3,1,0,1,2, },
171 ok(
hbmp != 0,
"CreateDIBitmap failed, skipping tests.\n");
175 ok(hbr == 0,
"CreateDIBPatternBrushPt should fail.\n");
void Test_CreateDIBPatternBrushPt()
void Test_CreateDIBPatternBrush()
void Test_CreateDIBPatternBrushPt_RLE8()
#define ok_hex(expression, result)
#define ok_long(expression, result)
#define ok_int(expression, result)
#define ERROR_INVALID_PARAMETER
DWORD WINAPI GetLastError(void)
HPALETTE WINAPI SelectPalette(_In_ HDC, _In_ HPALETTE, _In_ BOOL)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
HBRUSH WINAPI CreateDIBPatternBrush(_In_ HGLOBAL hglbDIBPacked, _In_ UINT uUsage)
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
HBRUSH WINAPI CreateDIBPatternBrushPt(_In_ const VOID *pvPackedDIB, _In_ UINT uUsage)
HBITMAP WINAPI CreateDIBitmap(_In_ HDC hdc, _In_opt_ const BITMAPINFOHEADER *pbmih, _In_ DWORD fdwInit, _In_opt_ const VOID *pvInit, _In_opt_ const BITMAPINFO *pbmi, _In_ UINT uUsage)