mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 07:44:47 +00:00
gdiplus: Add GdipSetCustomLineCapBaseInset implementation.
This commit is contained in:
parent
bc8ced226a
commit
200652075b
|
@ -220,14 +220,14 @@ GpStatus WINGDIPAPI GdipGetCustomLineCapBaseInset(GpCustomLineCap* custom,
|
||||||
GpStatus WINGDIPAPI GdipSetCustomLineCapBaseInset(GpCustomLineCap* custom,
|
GpStatus WINGDIPAPI GdipSetCustomLineCapBaseInset(GpCustomLineCap* custom,
|
||||||
REAL inset)
|
REAL inset)
|
||||||
{
|
{
|
||||||
static int calls;
|
|
||||||
|
|
||||||
TRACE("(%p,%0.2f)\n", custom, inset);
|
TRACE("(%p,%0.2f)\n", custom, inset);
|
||||||
|
|
||||||
if(!(calls++))
|
if(!custom)
|
||||||
FIXME("not implemented\n");
|
return InvalidParameter;
|
||||||
|
|
||||||
return NotImplemented;
|
custom->inset = inset;
|
||||||
|
|
||||||
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*FIXME: LineJoin completely ignored now */
|
/*FIXME: LineJoin completely ignored now */
|
||||||
|
|
|
@ -165,6 +165,14 @@ static void test_inset(void)
|
||||||
expect(Ok, stat);
|
expect(Ok, stat);
|
||||||
expectf(0.0, inset);
|
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);
|
GdipDeleteCustomLineCap(custom);
|
||||||
GdipDeletePath(path);
|
GdipDeletePath(path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue