Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xcb: Fix transformation matrix setting
_cairo_xcb_picture_set_matrix() checked if the matrix that it should set is an identity matrix. In this case this function simply didn't do anything at all. The assumption here seems to be that a picture's matrix is the identity matrix by default. The problem here is that we might first set a picture's matrix to something else and then later need an identity transform again. Fix this by still setting the new matrix if it is an identify matrix. We just skip some unneeded checks and optimizations in this case. This fixes the "finer-grained-fallbacks" test in the test suite. Signed-off-by: Uli Schlachter <psychon@znc.in>
- Loading branch information