зеркало из https://github.com/mozilla/gecko-dev.git
Bug 958086 - Adjust matrix in gfxPattern::GetPattern for Moz2D. r=bas
The pattern transform was not taking in to account the transform that was set on the draw target.
This commit is contained in:
Родитель
93de71edaa
Коммит
ec4c441fec
|
@ -179,8 +179,11 @@ gfxPattern::GetPattern(DrawTarget *aTarget, Matrix *aPatternTransform)
|
|||
}
|
||||
|
||||
if (!mPattern) {
|
||||
Matrix adjustedMatrix = mTransform;
|
||||
if (aPatternTransform)
|
||||
AdjustTransformForPattern(adjustedMatrix, aTarget->GetTransform(), aPatternTransform);
|
||||
mGfxPattern = new (mSurfacePattern.addr())
|
||||
SurfacePattern(mSourceSurface, ToExtendMode(mExtend), mTransform, mFilter);
|
||||
SurfacePattern(mSourceSurface, ToExtendMode(mExtend), adjustedMatrix, mFilter);
|
||||
return mGfxPattern;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче