Bug 746588 - Invert the gfxPattern matrix when using DrawTargets. r=jrmuizel a=akeybl

This commit is contained in:
Bas Schouten 2012-04-23 13:30:46 -04:00
parent 87b01dc940
commit 3c8520eec0

View File

@ -132,6 +132,10 @@ gfxPattern::SetMatrix(const gfxMatrix& matrix)
cairo_pattern_set_matrix(mPattern, &mat);
} else {
mTransform = ToMatrix(matrix);
// Cairo-pattern matrices specify the conversion from DrawTarget to pattern
// space. Azure pattern matrices specify the conversion from pattern to
// DrawTarget space.
mTransform.Invert();
}
}