Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pattern] After cloning adjust [xy]_offset if possible.
For the simple case where the pattern matrix only contains an integer translation then care is taken to convert that to a identity source matrix with the translation applied to the [xy]_offsets. 5b97ee6 broke this guarantee by applying the clone offsets to the source matrix. So when the source matrix is identity we can simply adjust the [xy]_offsets and preserve the identity matrix. (This idea can be extended further by removing any integer translation from the source matrix and storing it in the [xy]_offsets as a means to extend the limited precision in pixman_matrix_t - encountered when downscaling large images offset onto the target surface.)
- Loading branch information