Allow src and dst to be identical in pixman_f_transform_invert()
authorSøren Sandmann Pedersen <ssp@redhat.com>
Sun, 11 Nov 2012 19:05:54 +0000 (14:05 -0500)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sun, 11 Nov 2012 19:09:22 +0000 (14:09 -0500)
commitd881e1f5801ca0aefecccb43db05db539b3080d5
tree192d0f8bbe16b7c542299f9bc78fa2277ef8adee
parent614e7aaf14652c726b067bbc7562ef237dcd50de
Allow src and dst to be identical in pixman_f_transform_invert()

It is useful to be able to invert a matrix in place, but currently
pixman_f_transform_invert() will produce wrong results if you pass the
same matrix as both source and destination.

Fix that by inverting into a temporary matrix and then copying that to
the destination.
pixman/pixman-matrix.c