Bug 1060951: Properly unset the transform when doing the custom blend in FinalizeDrawing. r=jrmuizel

This commit is contained in:
Bas Schouten 2014-09-14 23:51:29 +02:00
parent adc9640d08
commit 799eb1e0e5

View File

@ -794,14 +794,14 @@ DrawTargetD2D1::FinalizeDrawing(CompositionOp aOp, const Pattern &aPattern)
mDC->SetTarget(mBitmap);
mDC->SetTransform(D2D1::IdentityMatrix());
mTransformDirty = true;
if (patternSupported) {
mDC->DrawImage(image, D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR, D2DCompositionMode(aOp));
return;
}
mDC->SetTransform(D2D1::IdentityMatrix());
mTransformDirty = true;
RefPtr<ID2D1Effect> radialGradientEffect;
mDC->CreateEffect(CLSID_RadialGradientEffect, byRef(radialGradientEffect));