gdiplus: Implement GdipSetEmpty.
This commit is contained in:
parent
8a9438d560
commit
dd1f9a39cf
|
@ -304,12 +304,17 @@ GpStatus WINGDIPAPI GdipIsInfiniteRegion(GpRegion *region, GpGraphics *graphics,
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipSetEmpty(GpRegion *region)
|
GpStatus WINGDIPAPI GdipSetEmpty(GpRegion *region)
|
||||||
{
|
{
|
||||||
static int calls;
|
GpStatus stat;
|
||||||
|
|
||||||
if(!(calls++))
|
TRACE("%p\n", region);
|
||||||
FIXME("not implemented\n");
|
|
||||||
|
|
||||||
return NotImplemented;
|
if (!region)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
delete_element(®ion->node);
|
||||||
|
stat = init_region(region, RegionDataEmptyRect);
|
||||||
|
|
||||||
|
return stat;
|
||||||
}
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipSetInfinite(GpRegion *region)
|
GpStatus WINGDIPAPI GdipSetInfinite(GpRegion *region)
|
||||||
|
|
|
@ -82,7 +82,10 @@ todo_wine
|
||||||
expect_dword(buf + 4, RGNDATA_INFINITE_RECT);
|
expect_dword(buf + 4, RGNDATA_INFINITE_RECT);
|
||||||
|
|
||||||
status = GdipSetEmpty(region);
|
status = GdipSetEmpty(region);
|
||||||
|
}
|
||||||
ok(status == Ok, "status %08x\n", status);
|
ok(status == Ok, "status %08x\n", status);
|
||||||
|
todo_wine
|
||||||
|
{
|
||||||
status = GdipGetRegionDataSize(region, &needed);
|
status = GdipGetRegionDataSize(region, &needed);
|
||||||
ok(status == Ok, "status %08x\n", status);
|
ok(status == Ok, "status %08x\n", status);
|
||||||
expect(20, needed);
|
expect(20, needed);
|
||||||
|
|
Loading…
Reference in New Issue