diff --git a/src/cairo-matrix.c b/src/cairo-matrix.c index 0c7f305a6..055898331 100644 --- a/src/cairo-matrix.c +++ b/src/cairo-matrix.c @@ -929,11 +929,11 @@ _cairo_matrix_to_pixman_matrix (const cairo_matrix_t *matrix, y = pixman_fixed_to_double (vector.vector[1]); cairo_matrix_transform_point (&inv, &x, &y); - /* Ideally, the vector should now be (xc, yc) [offset for pixel - * centre]. We can now compensate for the resulting error. + /* Ideally, the vector should now be (xc, yc). + * We can now compensate for the resulting error. */ - x -= xc; x += .5; - y -= yc; y += .5; + x -= xc; + y -= yc; cairo_matrix_transform_distance (matrix, &x, &y); dx = _cairo_fixed_16_16_from_double (x); dy = _cairo_fixed_16_16_from_double (y); diff --git a/test/rotate-image-surface-paint.ref.png b/test/rotate-image-surface-paint.ref.png index bd20481fd..5c98d7d89 100644 Binary files a/test/rotate-image-surface-paint.ref.png and b/test/rotate-image-surface-paint.ref.png differ diff --git a/test/surface-pattern.pdf.ref.png b/test/surface-pattern.pdf.ref.png index c37e2a4fb..ff9131c2f 100644 Binary files a/test/surface-pattern.pdf.ref.png and b/test/surface-pattern.pdf.ref.png differ diff --git a/test/surface-pattern.ref.png b/test/surface-pattern.ref.png index 9cdf6a54d..db60da6f6 100644 Binary files a/test/surface-pattern.ref.png and b/test/surface-pattern.ref.png differ diff --git a/test/surface-pattern.svg.ref.png b/test/surface-pattern.svg.ref.png index 2078fc0e1..cdbcf476b 100644 Binary files a/test/surface-pattern.svg.ref.png and b/test/surface-pattern.svg.ref.png differ