Go to the source code of this file.
◆ START_TEST()
Definition at line 126 of file PatBlt.c.
127{
129
142 &bmi,
146 0);
148 {
149 printf(
"Couln not create target bitmap\n");
150 return;
151 }
152
155 {
156 printf(
"Couln not create target dc\n");
157 return;
158 }
159
160
162 {
163 printf(
"Failed to select bitmap\n");
164 return;
165 }
166
168
170
171
172}
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 80 of file PatBlt.c.
81{
82 ULONG aulBits[2] = {0x5555AAAA, 0};
84 HBRUSH hbr;
86
89 {
90 printf(
"Couln not create a bitmap\n");
91 return;
92 }
93
95 if (!hbr)
96 {
97 printf(
"Couln not create a bitmap\n");
98 return;
99 }
100
102 {
103 printf(
"failed to select pattern brush\n");
104 return;
105 }
106
113
114
123
124}
#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 14 of file PatBlt.c.
15{
19
20
23
24
27
28
32
33
34 for (
i = 0;
i < 256;
i++)
35 {
38
39
40 if ((
i == 0) || (
i == 5) || (
i == 10) || (
i == 15) || (
i == 80) ||
41 (
i == 85) || (
i == 90) || (
i == 95) || (
i == 160) || (
i == 165) ||
42 (
i == 170) || (
i == 175) || (
i == 240) || (
i == 245) ||
43 (
i == 250) || (
i == 255))
44 {
45 ok(
ret == 1,
"index %ld failed, but should succeed\n",
i);
46 }
47 else
48 {
49 ok(
ret == 0,
"index %ld succeeded, but should fail\n",
i);
50 }
51 }
52
53
60
61
68
69
75
76
77
78}
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)
HDC WINAPI CreateICA(_In_opt_ LPCSTR, _In_opt_ LPCSTR, _In_opt_ LPCSTR, _In_opt_ const DEVMODEA *)
BOOL WINAPI DeleteDC(_In_ HDC)
Referenced by START_TEST().
◆ ghbmpTarget
◆ gpulTargetBits
◆ hdcTarget