gdiplus: Add GdipGetPenCompoundCount implementation.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52196
This commit is contained in:
Bartosz Kosiorek 2022-10-29 14:39:25 +02:00 committed by Alexandre Julliard
parent 9d5d4dba28
commit e2e8487b99
2 changed files with 4 additions and 5 deletions

View file

@ -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,

View file

@ -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);