mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-19 07:40:32 +01:00
matrix: Do not need to iteratively refine conversion for unity matrices.
If the scale factors on the matrix are unity, then the conversion from a cairo_matrix_t to a pixman_matrix_t is exact (within numerical restrictions).
This commit is contained in:
parent
13c56800ca
commit
6bfcf3ea55
1 changed files with 1 additions and 1 deletions
|
|
@ -915,7 +915,7 @@ _cairo_matrix_to_pixman_matrix (const cairo_matrix_t *matrix,
|
|||
* that point.
|
||||
*/
|
||||
|
||||
if (_cairo_matrix_is_translation (matrix))
|
||||
if (_cairo_matrix_has_unity_scale (matrix))
|
||||
return;
|
||||
|
||||
/* Note: If we can't invert the transformation, skip the adjustment. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue