gdiplus: Implement GdipGetLineBlend.

This commit is contained in:
Vincent Povirk 2009-04-28 18:18:26 -05:00 committed by Alexandre Julliard
parent 1e88ee5030
commit 47a81f5a0c
1 changed files with 9 additions and 5 deletions

View File

@ -1151,14 +1151,18 @@ GpStatus WINGDIPAPI GdipSetLineBlend(GpLineGradient *brush,
GpStatus WINGDIPAPI GdipGetLineBlend(GpLineGradient *brush, REAL *factors,
REAL *positions, INT count)
{
static int calls;
TRACE("(%p, %p, %p, %i)\n", brush, factors, positions, count);
if(!(calls++))
FIXME("not implemented\n");
if (!brush || !factors || !positions || count <= 0)
return InvalidParameter;
return NotImplemented;
if (count < brush->blendcount)
return InsufficientBuffer;
memcpy(factors, brush->blendfac, brush->blendcount * sizeof(REAL));
memcpy(positions, brush->blendpos, brush->blendcount * sizeof(REAL));
return Ok;
}
GpStatus WINGDIPAPI GdipGetLineBlendCount(GpLineGradient *brush, INT *count)