diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-22 15:37:25 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-22 23:01:52 +0000 |
commit | 6bfcf3ea55964fee1c9b73818c3bb7cdacbc4f82 (patch) | |
tree | 0074752c20f3ff81701388966ae1ea67c53ba01e /src/cairo-matrix.c | |
parent | 13c56800ca6c32a6d8251edec5d3976399b70ea4 (diff) | |
download | cairo-6bfcf3ea55964fee1c9b73818c3bb7cdacbc4f82.tar.gz |
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).
Diffstat (limited to 'src/cairo-matrix.c')
-rw-r--r-- | src/cairo-matrix.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |