Go to the source code of this file.
◆ START_TEST()
Definition at line 133 of file Rectangle.c.
134{
136}
void Test_Rectangle(void)
◆ Test_Rectangle()
Definition at line 10 of file Rectangle.c.
11{
15 HBRUSH hBrush;
16 HPEN hPen;
18
20 ok(
hdc !=
NULL,
"Failed to create the DC!\n");
22 ok(hBmp !=
NULL,
"Failed to create the Bitmap!\n");
24 ok(hBmp !=
NULL,
"Failed to select the Bitmap!\n");
25
27 ok(hBrush !=
NULL,
"Failed to create a solid brush!\n");
29 ok(hBrush !=
NULL,
"Failed to select the brush!\n");
30
31
33 ok(
ret,
"BitBlt failed to blank the bitmap!\n");
34
35
37 ok(
ret,
"Rectangle failed!");
48
50 ok(
ret,
"BitBlt failed to blank the bitmap!\n");
51
53 ok(
ret,
"Rectangle failed!");
64
65
67
68
70 ok(
ret,
"BitBlt failed to blank the bitmap!\n");
71
73 ok(
ret,
"Rectangle failed!");
84
86
87
89
90
92 ok(
ret,
"BitBlt failed to blank the bitmap!\n");
93
94
96 ok(
ret,
"Rectangle failed!");
107
109 ok(
ret,
"BitBlt failed to blank the bitmap!\n");
110
112 ok(
ret,
"Rectangle failed!");
123
124
130}
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
static VOID BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
HGDIOBJ WINAPI GetStockObject(_In_ int)
int WINAPI SetGraphicsMode(_In_ HDC, _In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
BOOL WINAPI DeleteDC(_In_ HDC)
Referenced by START_TEST().