[gtk/layout-manager-transform-demo: 5/9] gsk: Handle 3d transform the test differently
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/layout-manager-transform-demo: 5/9] gsk: Handle 3d transform the test differently
- Date: Thu, 3 Sep 2020 10:47:12 +0000 (UTC)
commit 4cbf3ffe7dab99bfc9c4b052895e1fcc036a0c24
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Sep 2 12:04:17 2020 -0400
gsk: Handle 3d transform the test differently
The perspectiv(200) does have a visual effect now,
so do things differently.
testsuite/gsk/compare/clip-coordinates-3d.node | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/testsuite/gsk/compare/clip-coordinates-3d.node b/testsuite/gsk/compare/clip-coordinates-3d.node
index 6b417ef16a..dd21b86711 100644
--- a/testsuite/gsk/compare/clip-coordinates-3d.node
+++ b/testsuite/gsk/compare/clip-coordinates-3d.node
@@ -1,7 +1,11 @@
transform {
- /* adding the perspective line here turns the matrix from a 2D
- category into a 3D category. It does not have any visual effect. */
- transform: perspective(200) scale(2);
+ /* We use matrix3d here to make a transform in the 3D category.
+ * It is still just a simple scale(2), but we don't tell gsk that.
+ */
+ transform: matrix3d(2, 0, 0, 0,
+ 0, 2, 0, 0,
+ 0, 0, 2, 0,
+ 0, 0, 0, 1);
child: container {
color {
bounds: 0 0 50 50;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]