Commit 47a81f5a authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Implement GdipGetLineBlend.

parent 1e88ee50
......@@ -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)
......
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