diff options
author | marha <marha@users.sourceforge.net> | 2009-11-20 14:53:20 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-11-20 14:53:20 +0000 |
commit | 9e11b82359e90c0963f56c4695a4dcc8731e45c3 (patch) | |
tree | ffa3a53246352ca44ccfc4d90e7cca993ad0b02e /pixman/test/alpha-test.c | |
parent | 607c11e20aca5c9f13d5e6ab80153b10c249162b (diff) | |
parent | 4ac4a5b7ce8cc8f195d69a42da10d386eaa5c056 (diff) | |
download | vcxsrv-9e11b82359e90c0963f56c4695a4dcc8731e45c3.tar.gz vcxsrv-9e11b82359e90c0963f56c4695a4dcc8731e45c3.tar.bz2 vcxsrv-9e11b82359e90c0963f56c4695a4dcc8731e45c3.zip |
svn merge ^/branches/released
Diffstat (limited to 'pixman/test/alpha-test.c')
-rw-r--r-- | pixman/test/alpha-test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pixman/test/alpha-test.c b/pixman/test/alpha-test.c index e2b97c789..92c208142 100644 --- a/pixman/test/alpha-test.c +++ b/pixman/test/alpha-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) @@ -14,7 +14,6 @@ main (int argc, char **argv) uint32_t *src = malloc (WIDTH * HEIGHT * 4); pixman_image_t *grad_img; pixman_image_t *alpha_img; - pixman_image_t *solid_img; pixman_image_t *dest_img; pixman_image_t *src_img; int i; @@ -26,24 +25,25 @@ 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), 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; pixman_fixed_t r_inner; pixman_fixed_t r_outer; - pixman_color_t red = { 0xffff, 0x0000, 0x0000, 0xffff }; for (i = 0; i < WIDTH * HEIGHT; ++i) alpha[i] = 0x4f00004f; /* pale blue */ @@ -91,7 +91,7 @@ main (int argc, char **argv) grad_img = pixman_image_create_linear_gradient (&p1, &p2, stops, 2); - pixman_image_set_transform (grad_img, &id); + pixman_image_set_transform (grad_img, &trans); pixman_image_set_repeat (grad_img, PIXMAN_REPEAT_PAD); pixman_image_composite (PIXMAN_OP_OVER, grad_img, NULL, alpha_img, |