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

Bryce Harrington <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
From: Bryce Harrington <[email protected]>

Signed-off-by: Bryce Harrington <[email protected]>
---
 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

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.