mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Bug 746588 - Invert the gfxPattern matrix when using DrawTargets. r=jrmuizel a=akeybl
This commit is contained in:
parent
919b0dc5b1
commit
19c747aae6
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user