d2d1: Implement d2d_radial_gradient_brush_GetRadiusX().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-09-28 13:14:14 +02:00 committed by Alexandre Julliard
parent d8fe80c5c5
commit 8dd021fd72
2 changed files with 7 additions and 2 deletions

View File

@ -732,9 +732,11 @@ static D2D1_POINT_2F * STDMETHODCALLTYPE d2d_radial_gradient_brush_GetGradientOr
static float STDMETHODCALLTYPE d2d_radial_gradient_brush_GetRadiusX(ID2D1RadialGradientBrush *iface)
{
FIXME("iface %p stub!\n", iface);
struct d2d_brush *brush = impl_from_ID2D1RadialGradientBrush(iface);
return 0.0f;
TRACE("iface %p.\n", iface);
return brush->u.radial.radius.x;
}
static float STDMETHODCALLTYPE d2d_radial_gradient_brush_GetRadiusY(ID2D1RadialGradientBrush *iface)
@ -789,6 +791,8 @@ HRESULT d2d_radial_gradient_brush_create(ID2D1Factory *factory,
ID2D1GradientStopCollection_AddRef(&b->u.radial.gradient->ID2D1GradientStopCollection_iface);
b->u.radial.centre = gradient_desc->center;
b->u.radial.offset = gradient_desc->gradientOriginOffset;
b->u.radial.radius.x = gradient_desc->radiusX;
b->u.radial.radius.y = gradient_desc->radiusY;
TRACE("Created brush %p.\n", b);
*brush = b;

View File

@ -244,6 +244,7 @@ struct d2d_brush
struct d2d_gradient *gradient;
D2D1_POINT_2F centre;
D2D1_POINT_2F offset;
D2D1_POINT_2F radius;
} radial;
struct
{