gdiplus: Implement GdipSetInfinite.
This commit is contained in:
parent
dd1f9a39cf
commit
2e0869984f
|
@ -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(®ion->node);
|
||||
stat = init_region(region, RegionDataInfiniteRect);
|
||||
|
||||
return stat;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipTransformRegion(GpRegion *region, GpMatrix *matrix)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue