994 lines
46 KiB
C
994 lines
46 KiB
C
|
|
||
|
#include <freerdp/gdi/gdi.h>
|
||
|
|
||
|
#include <freerdp/gdi/dc.h>
|
||
|
#include <freerdp/gdi/pen.h>
|
||
|
#include <freerdp/gdi/line.h>
|
||
|
#include <freerdp/gdi/brush.h>
|
||
|
#include <freerdp/gdi/region.h>
|
||
|
#include <freerdp/gdi/bitmap.h>
|
||
|
#include <freerdp/gdi/drawing.h>
|
||
|
#include <freerdp/gdi/palette.h>
|
||
|
#include <freerdp/gdi/clipping.h>
|
||
|
|
||
|
#include <winpr/crt.h>
|
||
|
#include <winpr/print.h>
|
||
|
|
||
|
/* LineTo() Test Data */
|
||
|
|
||
|
BYTE line_to_case_1[256] =
|
||
|
{
|
||
|
"\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
|
||
|
"\xFF\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
|
||
|
"\xFF\xFF\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
|
||
|
"\xFF\xFF\xFF\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
|
||
|
"\xFF\xFF\xFF\xFF\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
|
||
|
"\xFF\xFF\xFF\xFF\xFF\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
|
||
|
"\xFF\xFF\xFF\xFF\xFF\xFF\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
|
||
|
"\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
|
||
|
"\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x00\xFF\xFF\xFF\xFF\xFF\xFF\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xFF\xFF\xFF\x00\xFF\xFF"
|
||
|
"\xFF\xFF\xFF\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x00\xFF\xFF"
|
||
|
"\xFF\xFF\xFF\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x00\xFF\xFF"
|
||
|
"\xFF\xFF\xFF\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x00\xFF\xFF"
|
||
|
"\xFF\xFF\xFF\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xFF\xFF"
|
||
|
"\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
|
||
|
"\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
|
||
|
};
|
||
|
|
||
|
extern int test_assert_bitmaps_equal(HGDI_BITMAP hBmpActual, HGDI_BITMAP hBmpExpected, const char* name);
|
||
|
|
||
|
int TestGdiLine(int argc, char* argv[])
|
||
|
{
|
||
|
HGDI_DC hdc;
|
||
|
HGDI_PEN pen;
|
||
|
BYTE* data;
|
||
|
HGDI_BITMAP hBmp;
|
||
|
HGDI_BITMAP hBmp_LineTo_1;
|
||
|
HGDI_BITMAP hBmp_LineTo_2;
|
||
|
HGDI_BITMAP hBmp_LineTo_3;
|
||
|
HGDI_BITMAP hBmp_LineTo_4;
|
||
|
HGDI_BITMAP hBmp_LineTo_5;
|
||
|
HGDI_BITMAP hBmp_LineTo_6;
|
||
|
HGDI_BITMAP hBmp_LineTo_7;
|
||
|
HGDI_BITMAP hBmp_LineTo_8;
|
||
|
HGDI_BITMAP hBmp_LineTo_9;
|
||
|
HGDI_BITMAP hBmp_LineTo_10;
|
||
|
HGDI_BITMAP hBmp_LineTo_11;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_BLACK;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_NOTMERGEPEN;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_MASKNOTPEN;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_NOTCOPYPEN;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_MASKPENNOT;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_NOT;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_XORPEN;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_NOTMASKPEN;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_MASKPEN;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_NOTXORPEN;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_NOP;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_MERGENOTPEN;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_COPYPEN;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_MERGEPENNOT;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_MERGEPEN;
|
||
|
HGDI_BITMAP hBmp_LineTo_R2_WHITE;
|
||
|
rdpPalette* hPalette;
|
||
|
HCLRCONV clrconv;
|
||
|
int bitsPerPixel = 8;
|
||
|
int bytesPerPixel = 1;
|
||
|
|
||
|
hdc = gdi_GetDC();
|
||
|
hdc->bitsPerPixel = bitsPerPixel;
|
||
|
hdc->bytesPerPixel = bytesPerPixel;
|
||
|
gdi_SetNullClipRgn(hdc);
|
||
|
|
||
|
pen = gdi_CreatePen(1, 1, 0);
|
||
|
gdi_SelectObject(hdc, (HGDIOBJECT) pen);
|
||
|
|
||
|
hBmp = gdi_CreateCompatibleBitmap(hdc, 16, 16);
|
||
|
gdi_SelectObject(hdc, (HGDIOBJECT) hBmp);
|
||
|
|
||
|
hPalette = (rdpPalette*) gdi_GetSystemPalette();
|
||
|
|
||
|
clrconv = (HCLRCONV) malloc(sizeof(CLRCONV));
|
||
|
clrconv->alpha = 1;
|
||
|
clrconv->invert = 0;
|
||
|
clrconv->palette = hPalette;
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_case_1, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_1 = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_case_2, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_2 = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_case_3, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_3 = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_case_4, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_4 = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_case_5, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_5 = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_case_5, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_5 = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_case_6, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_6 = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_case_7, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_7 = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_case_8, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_8 = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_case_9, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_9 = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_case_10, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_10 = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_case_11, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_11 = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_BLACK, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_BLACK = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_NOTMERGEPEN, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_NOTMERGEPEN = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_MASKNOTPEN, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_MASKNOTPEN = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_NOTCOPYPEN, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_NOTCOPYPEN = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_MASKPENNOT, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_MASKPENNOT = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_NOT, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_NOT = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_XORPEN, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_XORPEN = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_NOTMASKPEN, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_NOTMASKPEN = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_MASKPEN, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_MASKPEN = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_NOTXORPEN, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_NOTXORPEN = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_NOP, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_NOP = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_MERGENOTPEN, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_MERGENOTPEN = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_COPYPEN, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_COPYPEN = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_MERGEPENNOT, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_MERGEPENNOT = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_MERGEPEN, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_MERGEPEN = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
data = (BYTE*) freerdp_image_convert((BYTE*) line_to_R2_WHITE, NULL, 16, 16, 8, bitsPerPixel, clrconv);
|
||
|
hBmp_LineTo_R2_WHITE = gdi_CreateBitmap(16, 16, bitsPerPixel, data);
|
||
|
|
||
|
/* Test Case 1: (0,0) -> (15, 15) */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_LineTo(hdc, 15, 15);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_1, "Case 1") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 2: (15,15) -> (0,0) */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_MoveToEx(hdc, 15, 15, NULL);
|
||
|
gdi_LineTo(hdc, 0, 0);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_2, "Case 2") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 3: (15,0) -> (0,15) */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_MoveToEx(hdc, 15, 0, NULL);
|
||
|
gdi_LineTo(hdc, 0, 15);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_3, "Case 3") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 4: (0,15) -> (15,0) */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_MoveToEx(hdc, 0, 15, NULL);
|
||
|
gdi_LineTo(hdc, 15, 0);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_4, "Case 4") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 5: (0,8) -> (15,8) */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_MoveToEx(hdc, 0, 8, NULL);
|
||
|
gdi_LineTo(hdc, 15, 8);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_5, "Case 5") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 6: (15,8) -> (0,8) */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_MoveToEx(hdc, 15, 8, NULL);
|
||
|
gdi_LineTo(hdc, 0, 8);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_6, "Case 6") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 7: (8,0) -> (8,15) */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_MoveToEx(hdc, 8, 0, NULL);
|
||
|
gdi_LineTo(hdc, 8, 15);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_7, "Case 7") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 8: (8,15) -> (8,0) */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_MoveToEx(hdc, 8, 15, NULL);
|
||
|
gdi_LineTo(hdc, 8, 0);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_8, "Case 8") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 9: (4,4) -> (12,12) */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_MoveToEx(hdc, 4, 4, NULL);
|
||
|
gdi_LineTo(hdc, 12, 12);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_9, "Case 9") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 10: (12,12) -> (4,4) */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_MoveToEx(hdc, 12, 12, NULL);
|
||
|
gdi_LineTo(hdc, 4, 4);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_10, "Case 10") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 11: (0,0) -> (+10,+10) */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_LineTo(hdc, 16 + 10, 16 + 10);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_11, "Case 11") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 12: (0,0) -> (16,16), R2_BLACK */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_BLACK);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_BLACK, "Case 12") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 13: (0,0) -> (16,16), R2_NOTMERGEPEN */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_NOTMERGEPEN);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_NOTMERGEPEN, "Case 13") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 14: (0,0) -> (16,16), R2_MASKNOTPEN */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_MASKNOTPEN);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_MASKNOTPEN, "Case 14") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 15: (0,0) -> (16,16), R2_NOTCOPYPEN */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_NOTCOPYPEN);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_NOTCOPYPEN, "Case 15") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 16: (0,0) -> (16,16), R2_MASKPENNOT */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_MASKPENNOT);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_MASKPENNOT, "Case 16") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 17: (0,0) -> (16,16), R2_NOT */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_NOT);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_NOT, "Case 17") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 18: (0,0) -> (16,16), R2_XORPEN */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_XORPEN);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_XORPEN, "Case 18") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 19: (0,0) -> (16,16), R2_NOTMASKPEN */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_NOTMASKPEN);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_NOTMASKPEN, "Case 19") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 20: (0,0) -> (16,16), R2_MASKPEN */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_MASKPEN);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_MASKPEN, "Case 20") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 21: (0,0) -> (16,16), R2_NOTXORPEN */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_NOTXORPEN);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_NOTXORPEN, "Case 21") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 22: (0,0) -> (16,16), R2_NOP */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_NOP);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_NOP, "Case 22") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 23: (0,0) -> (16,16), R2_MERGENOTPEN */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_MERGENOTPEN);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_MERGENOTPEN, "Case 23") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 24: (0,0) -> (16,16), R2_COPYPEN */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_COPYPEN);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_COPYPEN, "Case 24") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 25: (0,0) -> (16,16), R2_MERGEPENNOT */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_MERGEPENNOT);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_MERGEPENNOT, "Case 25") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 26: (0,0) -> (16,16), R2_MERGEPEN */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_MERGEPEN);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_MERGEPEN, "Case 26") < 0)
|
||
|
return -1;
|
||
|
|
||
|
/* Test Case 27: (0,0) -> (16,16), R2_WHITE */
|
||
|
gdi_BitBlt(hdc, 0, 0, 16, 16, hdc, 0, 0, GDI_WHITENESS);
|
||
|
gdi_SetClipRgn(hdc, 0, 0, 16, 16);
|
||
|
gdi_MoveToEx(hdc, 0, 0, NULL);
|
||
|
gdi_SetROP2(hdc, GDI_R2_WHITE);
|
||
|
gdi_LineTo(hdc, 16, 16);
|
||
|
|
||
|
if (test_assert_bitmaps_equal(hBmp, hBmp_LineTo_R2_WHITE, "Case 27") < 0)
|
||
|
return -1;
|
||
|
|
||
|
return 0;
|
||
|
}
|