[cairo] [PATCH 5/6] path: Don't use fast path if there is projective transformation

Bryce Harrington bryce at osg.samsung.com
Fri Nov 28 20:31:23 PST 2014


From: Bryce Harrington <b.harrington at samsung.com>

Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>
---
 src/cairo-path-fixed.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c
index 4bbf496..f4517a2 100644
--- a/src/cairo-path-fixed.c
+++ b/src/cairo-path-fixed.c
@@ -1053,7 +1053,7 @@ _cairo_path_fixed_transform (cairo_path_fixed_t	*path,
     cairo_path_buf_t *buf;
     unsigned int i;
 
-    if (matrix->yx == 0.0 && matrix->xy == 0.0) {
+    if (matrix->yx == 0.0 && matrix->xy == 0.0 && matrix->px == 0.0 && matrix->py == 0.0) {
 	/* Fast path for the common case of scale+transform */
 	_cairo_path_fixed_offset_and_scale (path,
 					    _cairo_fixed_from_double (matrix->x0),
-- 
1.7.9.5



More information about the cairo mailing list