From 6bfcf3ea55964fee1c9b73818c3bb7cdacbc4f82 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 22 Jan 2010 15:37:25 +0000 Subject: [PATCH] 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). --- src/cairo-matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-matrix.c b/src/cairo-matrix.c index 75f091b48..c1075547c 100644 --- a/src/cairo-matrix.c +++ b/src/cairo-matrix.c @@ -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. */