gdiplus: Implement GdipSetInfinite.

This commit is contained in:
Adam Petaccia 2008-07-24 19:01:41 -04:00 committed by Alexandre Julliard
parent dd1f9a39cf
commit 2e0869984f
2 changed files with 12 additions and 4 deletions

View File

@ -319,12 +319,17 @@ GpStatus WINGDIPAPI GdipSetEmpty(GpRegion *region)
GpStatus WINGDIPAPI GdipSetInfinite(GpRegion *region)
{
static int calls;
GpStatus stat;
if(!(calls++))
FIXME("not implemented\n");
if (!region)
return InvalidParameter;
return NotImplemented;
TRACE("%p", region);
delete_element(&region->node);
stat = init_region(region, RegionDataInfiniteRect);
return stat;
}
GpStatus WINGDIPAPI GdipTransformRegion(GpRegion *region, GpMatrix *matrix)

View File

@ -97,10 +97,13 @@ todo_wine
expect_magic((DWORD*)(buf + 2));
expect_dword(buf + 3, 0);
expect_dword(buf + 4, RGNDATA_EMPTY_RECT);
}
status = GdipSetInfinite(region);
ok(status == Ok, "status %08x\n", status);
status = GdipGetRegionDataSize(region, &needed);
todo_wine
{
ok(status == Ok, "status %08x\n", status);
expect(20, needed);
status = GdipGetRegionData(region, (BYTE*)buf, sizeof(buf), &needed);