Skip to content
Snippets Groups Projects
Commit 19c747aa authored by Bas Schouten's avatar Bas Schouten
Browse files

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

parent 919b0dc5
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment