mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 16:13:37 +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,
|
||||
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 */
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue