[GDI32_APITEST]

Add another test case for ExcludeClipRect

svn path=/trunk/; revision=64332
This commit is contained in:
Timo Kreuzer 2014-09-27 10:57:50 +00:00
parent 0f62b7bb9d
commit b9421c0166

View file

@ -51,7 +51,12 @@ void Test_ExcludeClipRect()
ok_int(GetRandomRgn(hdc, hrgn2, CLIPRGN), 1);
ok_int(CombineRgn(hrgn2, hrgn2, hrgn, RGN_XOR), NULLREGION);
/* Now exclude something for real */
/* Exclude something on one side of the clip rect */
ok_int(ExcludeClipRect(hdc, 0, 0, 13, 50), COMPLEXREGION);
ok_int(GetRandomRgn(hdc, hrgn2, CLIPRGN), 1);
ok_int(CombineRgn(hrgn, hrgn2, NULL, RGN_COPY), SIMPLEREGION);
/* Exclude something on the edge of the clip rect */
ok_int(ExcludeClipRect(hdc, 0, 0, 15, 15), COMPLEXREGION);
ok_int(GetRandomRgn(hdc, hrgn2, CLIPRGN), 1);
ok_int(CombineRgn(hrgn, hrgn2, NULL, RGN_COPY), COMPLEXREGION);