gdiplus: Implement GdipSetEmpty.

oldstable
Adam Petaccia 2008-07-24 19:01:37 -04:00 committed by Alexandre Julliard
parent 8a9438d560
commit dd1f9a39cf
2 changed files with 12 additions and 4 deletions

View File

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

View File

@ -82,7 +82,10 @@ todo_wine
expect_dword(buf + 4, RGNDATA_INFINITE_RECT);
status = GdipSetEmpty(region);
}
ok(status == Ok, "status %08x\n", status);
todo_wine
{
status = GdipGetRegionDataSize(region, &needed);
ok(status == Ok, "status %08x\n", status);
expect(20, needed);