Commit e2e8487b authored by Bartosz Kosiorek's avatar Bartosz Kosiorek Committed by Alexandre Julliard

gdiplus: Add GdipGetPenCompoundCount implementation.

parent 9d5d4dba
......@@ -528,12 +528,12 @@ GpStatus WINGDIPAPI GdipSetPenColor(GpPen *pen, ARGB argb)
GpStatus WINGDIPAPI GdipGetPenCompoundCount(GpPen *pen, INT *count)
{
FIXME("(%p, %p): stub\n", pen, count);
TRACE("(%p, %p)\n", pen, count);
if (!pen || !count)
return InvalidParameter;
return NotImplemented;
*count = pen->compound_array_size;
return Ok;
}
GpStatus WINGDIPAPI GdipSetPenCompoundArray(GpPen *pen, GDIPCONST REAL *compoundarray,
......
......@@ -370,10 +370,9 @@ static void test_compoundarray(void)
count = 10;
status = GdipGetPenCompoundCount(pen, &count);
todo_wine {
expect(Ok, status);
ok(count == 0, "Unexpected compound count %d\n", count);
}
status = GdipSetPenCompoundArray(pen, NULL, 0);
expect(InvalidParameter, status);
status = GdipSetPenCompoundArray(pen, NULL, 4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment