[gegl] Bug 656272: Affine transformations are wrong
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Bug 656272: Affine transformations are wrong
- Date: Mon, 2 Apr 2012 17:14:38 +0000 (UTC)
commit a5db476afebd8d6db4ef61298f2e7ff20b9fa797
Author: Massimo Valentini <mvalentini src gnome org>
Date: Mon Apr 2 19:03:38 2012 +0200
Bug 656272: Affine transformations are wrong
operations/transform/transform-core.c | 4 ++--
tests/compositions/reference/clones.png | Bin 802439 -> 789206 bytes
.../compositions/reference/composite-transform.png | Bin 16350 -> 16378 bytes
3 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 0066884..ff927f4 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -333,7 +333,7 @@ gegl_affine_create_composite_matrix (OpTransform *affine,
GeglMatrix3 source;
gegl_affine_get_source_matrix (affine, &source);
- gegl_matrix3_multiply (&source, matrix, matrix);
+ gegl_matrix3_multiply (matrix, &source, matrix);
}
}
@@ -609,7 +609,7 @@ gegl_affine_get_invalidated_by_change (GeglOperation *op,
GeglMatrix3 source;
gegl_affine_get_source_matrix (affine, &source);
- gegl_matrix3_multiply (&source, &matrix, &matrix);
+ gegl_matrix3_multiply (&matrix, &source, &matrix);
}
if (gegl_affine_is_intermediate_node (affine) ||
diff --git a/tests/compositions/reference/clones.png b/tests/compositions/reference/clones.png
index 8c3fb55..4ee59d5 100644
Binary files a/tests/compositions/reference/clones.png and b/tests/compositions/reference/clones.png differ
diff --git a/tests/compositions/reference/composite-transform.png b/tests/compositions/reference/composite-transform.png
index f437c9c..b9b5d10 100644
Binary files a/tests/compositions/reference/composite-transform.png and b/tests/compositions/reference/composite-transform.png differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]