mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 828157 - Properly offset gradient origin when using D2D to draw moderately complex gradients. r=jmuizelaar
This commit is contained in:
parent
1f123b40f9
commit
249037f0d4
@ -2201,8 +2201,8 @@ DrawTargetD2D::CreateBrushForPattern(const Pattern &aPattern, Float aAlpha)
|
||||
|
||||
// This will not be a complex radial gradient brush.
|
||||
mRT->CreateRadialGradientBrush(
|
||||
D2D1::RadialGradientBrushProperties(D2DPoint(pat->mCenter1),
|
||||
D2D1::Point2F(),
|
||||
D2D1::RadialGradientBrushProperties(D2DPoint(pat->mCenter2),
|
||||
D2DPoint(pat->mCenter1 - pat->mCenter2),
|
||||
pat->mRadius2, pat->mRadius2),
|
||||
D2D1::BrushProperties(aAlpha, D2DMatrix(pat->mMatrix)),
|
||||
stops->mStopCollection,
|
||||
|
Loading…
Reference in New Issue
Block a user