aboutsummaryrefslogtreecommitdiff
path: root/pixman/test/gradient-test.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-11-20 13:20:24 +0000
committermarha <marha@users.sourceforge.net>2009-11-20 13:20:24 +0000
commit4ac4a5b7ce8cc8f195d69a42da10d386eaa5c056 (patch)
treefb29d9eeba83a773d22cf396d1b0a549fb95cc11 /pixman/test/gradient-test.c
parent2e4def74ad9278c142d07ffa91f51035dc49cf77 (diff)
downloadvcxsrv-4ac4a5b7ce8cc8f195d69a42da10d386eaa5c056.tar.gz
vcxsrv-4ac4a5b7ce8cc8f195d69a42da10d386eaa5c056.tar.bz2
vcxsrv-4ac4a5b7ce8cc8f195d69a42da10d386eaa5c056.zip
Update to pixman-0.17.2
Diffstat (limited to 'pixman/test/gradient-test.c')
-rw-r--r--pixman/test/gradient-test.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/pixman/test/gradient-test.c b/pixman/test/gradient-test.c
index 2593ee38a..fc84844b0 100644
--- a/pixman/test/gradient-test.c
+++ b/pixman/test/gradient-test.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "pixman.h"
-#include "utils.h"
+#include "gtk-utils.h"
int
main (int argc, char **argv)
@@ -21,18 +21,20 @@ main (int argc, char **argv)
pixman_point_fixed_t p1 = { pixman_double_to_fixed (0), 0 };
pixman_point_fixed_t p2 = { pixman_double_to_fixed (WIDTH / 8.),
pixman_int_to_fixed (0) };
+#if 0
pixman_transform_t trans = {
{ { pixman_double_to_fixed (2), pixman_double_to_fixed (0.5), pixman_double_to_fixed (-100), },
{ pixman_double_to_fixed (0), pixman_double_to_fixed (3), pixman_double_to_fixed (0), },
{ pixman_double_to_fixed (0), pixman_double_to_fixed (0.000), pixman_double_to_fixed (1.0) }
}
};
-
- pixman_transform_t id = {
+#else
+ pixman_transform_t trans = {
{ { pixman_fixed_1, 0, 0 },
{ 0, pixman_fixed_1, 0 },
{ 0, 0, pixman_fixed_1 } }
};
+#endif
pixman_point_fixed_t c_inner;
pixman_point_fixed_t c_outer;
@@ -67,7 +69,7 @@ main (int argc, char **argv)
src_img = pixman_image_create_linear_gradient (&p1, &p2,
stops, 2);
- pixman_image_set_transform (src_img, &id);
+ pixman_image_set_transform (src_img, &trans);
pixman_image_set_repeat (src_img, PIXMAN_REPEAT_PAD);
pixman_image_composite (PIXMAN_OP_OVER, src_img, NULL, dest_img,