summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2010-12-12 09:19:13 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2011-01-18 12:42:26 -0500
commit9489c2e04a5361fe19a89a0da9d7be28436c0a4b (patch)
treed4a6002e555e0c580a526787b8e1d37dd1811d83 /test
parentfffeda703e40ced90ec5ad6d6cd37a44294d3fe4 (diff)
Turn on testing for destination transformation
Diffstat (limited to 'test')
-rw-r--r--test/alphamap.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/alphamap.c b/test/alphamap.c
index 9fb8969..554b309 100644
--- a/test/alphamap.c
+++ b/test/alphamap.c
@@ -165,20 +165,17 @@ run_test (int s, int d, int sa, int da, int soff, int doff)
orig_dst = create_image (df, daf, doff, doff);
dst = create_image (df, daf, doff, doff);
- /* Transformations on destinations should be ignored, so just set some
- * random one.
+ /* Transformations, repeats and filters on destinations should be ignored,
+ * so just set some random ones.
*/
pixman_transform_init_identity (&t1);
pixman_transform_scale (&t1, NULL, pixman_int_to_fixed (100), pixman_int_to_fixed (11));
pixman_transform_rotate (&t1, NULL, pixman_double_to_fixed (0.5), pixman_double_to_fixed (0.11));
pixman_transform_translate (&t1, NULL, pixman_int_to_fixed (11), pixman_int_to_fixed (17));
-#if 0
- /* Unfortunately, this is actually broken at the moment, so we can't
- * actually turn it on
- */
pixman_image_set_transform (dst, &t1);
-#endif
+ pixman_image_set_filter (dst, PIXMAN_FILTER_BILINEAR, NULL, 0);
+ pixman_image_set_repeat (dst, PIXMAN_REPEAT_REFLECT);
pixman_image_composite (PIXMAN_OP_SRC, orig_dst, NULL, dst,
0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);