Go to the source code of this file.
◆ START_TEST()
Definition at line 156 of file PatBlt.c.
157{
159
172 &bmi,
176 0);
178 {
179 printf(
"Couln not create target bitmap\n");
180 return;
181 }
182
185 {
186 printf(
"Couln not create target dc\n");
187 return;
188 }
189
191 {
192 printf(
"Failed to select bitmap\n");
193 return;
194 }
195
197
199}
void Test_PatBlt_Params()
BITMAPINFOHEADER bmiHeader
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
◆ Test_BrushOrigin()
void Test_BrushOrigin |
( |
| ) |
|
Definition at line 111 of file PatBlt.c.
112{
113 ULONG aulBits[2] = {0x5555AAAA, 0};
115 HBRUSH hbr;
117
120 {
121 printf(
"Couln not create a bitmap\n");
122 return;
123 }
124
126 if (!hbr)
127 {
128 printf(
"Couln not create a bitmap\n");
129 return;
130 }
131
133 {
134 printf(
"failed to select pattern brush\n");
135 return;
136 }
137
144
145
154}
#define ok_long(expression, result)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
HBRUSH WINAPI CreatePatternBrush(_In_ HBITMAP)
Referenced by START_TEST().
◆ Test_PatBlt_Params()
void Test_PatBlt_Params |
( |
| ) |
|
Definition at line 15 of file PatBlt.c.
16{
22
23
26
27
30
31
35
36
37 for (
i = 0;
i < 256;
i++)
38 {
41
42
43 if ((
i == 0) || (
i == 5) || (
i == 10) || (
i == 15) || (
i == 80) ||
44 (
i == 85) || (
i == 90) || (
i == 95) || (
i == 160) || (
i == 165) ||
45 (
i == 170) || (
i == 175) || (
i == 240) || (
i == 245) ||
46 (
i == 250) || (
i == 255))
47 {
48 ok(
ret == 1,
"index %ld failed, but should succeed\n",
i);
49 }
50 else
51 {
52 ok(
ret == 0,
"index %ld succeeded, but should fail\n",
i);
53 }
54 }
55
56
63
64
71
72
78
79
109}
FORCEINLINE VOID SetPixel(_In_ ULONG Left, _In_ ULONG Top, _In_ UCHAR Color)
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static int rop(int rop, int src, int dst)
HGDIOBJ WINAPI GetStockObject(_In_ int)
HDC WINAPI CreateICA(_In_opt_ LPCSTR, _In_opt_ LPCSTR, _In_opt_ LPCSTR, _In_opt_ const DEVMODEA *)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
BOOL WINAPI DeleteDC(_In_ HDC)
Referenced by START_TEST().
◆ ghbmpTarget
◆ gpulTargetBits
◆ hdcTarget