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
Родитель 919b0dc5b1
Коммит 19c747aae6
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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();
}
}