xenocara/lib/pixman/test/trap-crasher.c
matthieu 0def8ce1ff Update to pixman 0.22.2.
0.22.0 was tested by many. 0.22.2 only add a few bug fixes.
Note that on amd64 a recent ld.so is needed to avoid random bus errors.
2011-07-24 13:05:47 +00:00

28 lines
424 B
C

#include <stdlib.h>
#include <pixman.h>
int
main()
{
pixman_image_t *dst;
pixman_trapezoid_t traps[1] = {
{
2147483646,
2147483647,
{
{ 0, 0 },
{ 0, 2147483647 }
},
{
{ 65536, 0 },
{ 0, 2147483647 }
}
},
};
dst = pixman_image_create_bits (PIXMAN_a8, 1, 1, NULL, -1);
pixman_add_trapezoids (dst, 0, 0, sizeof (traps)/sizeof (traps[0]), traps);
return (0);
}