diff options
author | marha <marha@users.sourceforge.net> | 2011-01-26 20:08:27 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-01-26 20:08:27 +0000 |
commit | 458542c76bf19b6bb24c397c3a567b64c88842c2 (patch) | |
tree | 397a85ef7184179214dbb0dcfe46ad7db2b02c1e /pixman/test | |
parent | 8ed881d7e53a99d2f2bc136c6d3277eba4cd3d3b (diff) | |
parent | a58ed86fb6139585b9a5d5664c52c7e0d5cfa719 (diff) | |
download | vcxsrv-458542c76bf19b6bb24c397c3a567b64c88842c2.tar.gz vcxsrv-458542c76bf19b6bb24c397c3a567b64c88842c2.tar.bz2 vcxsrv-458542c76bf19b6bb24c397c3a567b64c88842c2.zip |
svn merge ^/branches/released .
Diffstat (limited to 'pixman/test')
-rw-r--r-- | pixman/test/affine-test.c | 6 | ||||
-rw-r--r-- | pixman/test/blitters-test.c | 16 | ||||
-rw-r--r-- | pixman/test/scaling-crash-test.c | 18 | ||||
-rw-r--r-- | pixman/test/scaling-test.c | 6 |
4 files changed, 27 insertions, 19 deletions
diff --git a/pixman/test/affine-test.c b/pixman/test/affine-test.c index 3e32b5a23..fbb35caa9 100644 --- a/pixman/test/affine-test.c +++ b/pixman/test/affine-test.c @@ -40,9 +40,9 @@ test_composite (int testnum, int w, h;
pixman_fixed_t scale_x = 65536, scale_y = 65536;
pixman_fixed_t translate_x = 0, translate_y = 0;
- int op;
- int repeat = 0;
- int src_fmt, dst_fmt;
+ pixman_op_t op;
+ pixman_repeat_t repeat = PIXMAN_REPEAT_NONE;
+ pixman_format_code_t src_fmt, dst_fmt;
uint32_t * srcbuf;
uint32_t * dstbuf;
uint32_t crc32;
diff --git a/pixman/test/blitters-test.c b/pixman/test/blitters-test.c index 0ff9a1d48..3b27cd8c1 100644 --- a/pixman/test/blitters-test.c +++ b/pixman/test/blitters-test.c @@ -27,7 +27,7 @@ create_random_image (pixman_format_code_t *allowed_formats, uint32_t *buf;
pixman_image_t *img;
- while (allowed_formats[n] != -1)
+ while (allowed_formats[n] != PIXMAN_null)
n++;
fmt = allowed_formats[lcg_rand_n (n)];
@@ -78,7 +78,7 @@ free_random_image (uint32_t initcrc, uint32_t *data = pixman_image_get_data (img);
int height = pixman_image_get_height (img);
- if (fmt != -1)
+ if (fmt != PIXMAN_null)
{
/* mask unused 'x' part */
if (PIXMAN_FORMAT_BPP (fmt) - PIXMAN_FORMAT_DEPTH (fmt) &&
@@ -218,7 +218,7 @@ static pixman_format_code_t img_fmt_list[] = { PIXMAN_a1r1g1b1,
PIXMAN_a1b1g1r1,
PIXMAN_a1,
- -1
+ PIXMAN_null
};
static pixman_format_code_t mask_fmt_list[] = {
@@ -226,7 +226,7 @@ static pixman_format_code_t mask_fmt_list[] = { PIXMAN_a8,
PIXMAN_a4,
PIXMAN_a1,
- -1
+ PIXMAN_null
};
@@ -247,7 +247,7 @@ test_composite (int testnum, int verbose) int dst_x, dst_y;
int mask_x, mask_y;
int w, h;
- int op;
+ pixman_op_t op;
pixman_format_code_t src_fmt, dst_fmt, mask_fmt;
uint32_t *dstbuf, *srcbuf, *maskbuf;
uint32_t crc32;
@@ -305,7 +305,7 @@ test_composite (int testnum, int verbose) dst_y = lcg_rand_n (dst_height);
mask_img = NULL;
- mask_fmt = -1;
+ mask_fmt = PIXMAN_null;
mask_x = 0;
mask_y = 0;
maskbuf = NULL;
@@ -385,7 +385,7 @@ test_composite (int testnum, int verbose) printf ("---\n");
}
- free_random_image (0, src_img, -1);
+ free_random_image (0, src_img, PIXMAN_null);
crc32 = free_random_image (0, dst_img, dst_fmt);
if (mask_img)
@@ -393,7 +393,7 @@ test_composite (int testnum, int verbose) if (srcbuf == maskbuf)
pixman_image_unref(mask_img);
else
- free_random_image (0, mask_img, -1);
+ free_random_image (0, mask_img, PIXMAN_null);
}
FLOAT_REGS_CORRUPTION_DETECTOR_FINISH ();
diff --git a/pixman/test/scaling-crash-test.c b/pixman/test/scaling-crash-test.c index 0ce1fece9..23ee8c6be 100644 --- a/pixman/test/scaling-crash-test.c +++ b/pixman/test/scaling-crash-test.c @@ -95,21 +95,29 @@ run_test (int32_t dst_width, return result;
}
-typedef struct info_t info_t;
-struct info_t
+typedef struct filter_info_t filter_info_t;
+struct filter_info_t
{
- int value;
+ pixman_filter_t value;
char name[28];
};
-static const info_t filters[] =
+static const filter_info_t filters[] =
{
{ PIXMAN_FILTER_NEAREST, "NEAREST" },
{ PIXMAN_FILTER_BILINEAR, "BILINEAR" },
{ PIXMAN_FILTER_CONVOLUTION, "CONVOLUTION" },
};
-static const info_t repeats[] =
+typedef struct repeat_info_t repeat_info_t;
+struct repeat_info_t
+{
+ pixman_repeat_t value;
+ char name[28];
+};
+
+
+static const repeat_info_t repeats[] =
{
{ PIXMAN_REPEAT_PAD, "PAD" },
{ PIXMAN_REPEAT_REFLECT, "REFLECT" },
diff --git a/pixman/test/scaling-test.c b/pixman/test/scaling-test.c index 872805338..7b78017a3 100644 --- a/pixman/test/scaling-test.c +++ b/pixman/test/scaling-test.c @@ -40,9 +40,9 @@ test_composite (int testnum, int w, h;
pixman_fixed_t scale_x = 65536, scale_y = 65536;
pixman_fixed_t translate_x = 0, translate_y = 0;
- int op;
- int repeat = 0;
- int src_fmt, dst_fmt;
+ pixman_op_t op;
+ pixman_repeat_t repeat = PIXMAN_REPEAT_NONE;
+ pixman_format_code_t src_fmt, dst_fmt;
uint32_t * srcbuf;
uint32_t * dstbuf;
uint32_t crc32;
|