aboutsummaryrefslogtreecommitdiff
path: root/pixman/test/trap-crasher.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-07-25 16:02:10 +0000
committermarha <marha@users.sourceforge.net>2009-07-25 16:02:10 +0000
commit6aa791a05508dd822b229cd4ff4f9b8cdd617db3 (patch)
treea07d0a8452c90e3305417e8691d6e1deca7aa9aa /pixman/test/trap-crasher.c
parentddfb922180a6a847d52609592a2bdb37179ca439 (diff)
parent4b195776d5fb64e83a4e56627367d8e9ea10cbf7 (diff)
downloadvcxsrv-6aa791a05508dd822b229cd4ff4f9b8cdd617db3.tar.gz
vcxsrv-6aa791a05508dd822b229cd4ff4f9b8cdd617db3.tar.bz2
vcxsrv-6aa791a05508dd822b229cd4ff4f9b8cdd617db3.zip
svn merge file:///D:/svnrepos/vcxsrv/branches/released .
Diffstat (limited to 'pixman/test/trap-crasher.c')
-rw-r--r--pixman/test/trap-crasher.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/pixman/test/trap-crasher.c b/pixman/test/trap-crasher.c
new file mode 100644
index 000000000..42b82f674
--- /dev/null
+++ b/pixman/test/trap-crasher.c
@@ -0,0 +1,27 @@
+#include <stdlib.h>
+#include <pixman.h>
+
+int
+main()
+{
+ pixman_image_t *dst;
+ pixman_trapezoid_t traps[1] = {
+ {
+ .top = 2147483646,
+ .bottom = 2147483647,
+ .left = {
+ .p1 = { .x = 0, .y = 0 },
+ .p2 = { .x = 0, .y = 2147483647 }
+ },
+ .right = {
+ .p1 = { .x = 65536, .y = 0 },
+ .p2 = { .x = 0, .y = 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);
+}