summaryrefslogtreecommitdiff
path: root/test/blitters-test.c
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2011-03-07 13:45:54 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2011-03-07 14:07:44 -0500
commit84f3c5a71a2de1a96dcf0c7f9ab0a8ee1b1b158f (patch)
treed05db8f6002a97f08e8185b5fe45e67769c092c7 /test/blitters-test.c
parent17feaa9c50bb8521b0366345efe181bd99754957 (diff)
test: In image_endian_swap() use pixman_image_get_format() to get the bpp.
There is no reason to pass in the bpp as an argument; it can be gotten directly from the image.
Diffstat (limited to 'test/blitters-test.c')
-rw-r--r--test/blitters-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/blitters-test.c b/test/blitters-test.c
index 42181efd..63e7cb31 100644
--- a/test/blitters-test.c
+++ b/test/blitters-test.c
@@ -61,7 +61,7 @@ create_random_image (pixman_format_code_t *allowed_formats,
pixman_image_set_indexed (img, &(y_palette[PIXMAN_FORMAT_BPP (fmt)]));
}
- image_endian_swap (img, PIXMAN_FORMAT_BPP (fmt));
+ image_endian_swap (img);
if (used_fmt) *used_fmt = fmt;
return img;
@@ -101,7 +101,7 @@ free_random_image (uint32_t initcrc,
/* swap endiannes in order to provide identical results on both big
* and litte endian systems
*/
- image_endian_swap (img, PIXMAN_FORMAT_BPP (fmt));
+ image_endian_swap (img);
crc32 = compute_crc32 (initcrc, data, stride * height);
}