Skip to content

Commit

Permalink
matrix: Do not need to iteratively refine conversion for unity matrices.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
Chris Wilson committed Jan 22, 2010
1 parent 13c5680 commit 6bfcf3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cairo-matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 6bfcf3e

Please sign in to comment.