gdiplus: Add GdipSetCustomLineCapBaseInset implementation.

This commit is contained in:
Bartosz Kosiorek 2022-11-07 17:35:55 +01:00 committed by Alexandre Julliard
parent bc8ced226a
commit 200652075b
2 changed files with 13 additions and 5 deletions

View file

@ -220,14 +220,14 @@ GpStatus WINGDIPAPI GdipGetCustomLineCapBaseInset(GpCustomLineCap* custom,
GpStatus WINGDIPAPI GdipSetCustomLineCapBaseInset(GpCustomLineCap* custom,
REAL inset)
{
static int calls;
TRACE("(%p,%0.2f)\n", custom, inset);
if(!(calls++))
FIXME("not implemented\n");
if(!custom)
return InvalidParameter;
return NotImplemented;
custom->inset = inset;
return Ok;
}
/*FIXME: LineJoin completely ignored now */

View file

@ -165,6 +165,14 @@ static void test_inset(void)
expect(Ok, stat);
expectf(0.0, inset);
stat = GdipSetCustomLineCapBaseInset(custom, 2.0);
expect(Ok, stat);
inset = (REAL)0xdeadbeef;
stat = GdipGetCustomLineCapBaseInset(custom, &inset);
expect(Ok, stat);
ok(inset == 2.0, "Unexpected inset value %f\n", inset);
GdipDeleteCustomLineCap(custom);
GdipDeletePath(path);
}