From: YeshunYe yeyeshun@uniontech.com
Fixed union member misuse in d2d_brush_fill_cb() function where radial gradient brush processing incorrectly accessed brush->u.linear.gradient instead of brush->u.radial.gradient.
Signed-off-by: YeshunYe yeyeshun@uniontech.com --- dlls/d2d1/brush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d2d1/brush.c b/dlls/d2d1/brush.c index 75cd72b5b9f..50754a2f21a 100644 --- a/dlls/d2d1/brush.c +++ b/dlls/d2d1/brush.c @@ -1445,7 +1445,7 @@ BOOL d2d_brush_fill_cb(const struct d2d_brush *brush, struct d2d_brush_cb *cb) t = sqrtf(s1 - s2); d2d_point_set(&cb->u.radial.rb, t * -sin_theta, t * cos_theta);
- cb->u.radial.stop_count = brush->u.linear.gradient->stop_count; + cb->u.radial.stop_count = brush->u.radial.gradient->stop_count;
return TRUE;