1#include <stdlib.h> 2#include "utils.h" 3 4int 5main() 6{ 7 pixman_image_t *dst; 8 pixman_trapezoid_t traps[] = { 9 { 10 2147483646, 11 2147483647, 12 { 13 { 0, 0 }, 14 { 0, 2147483647 } 15 }, 16 { 17 { 65536, 0 }, 18 { 0, 2147483647 } 19 } 20 }, 21 { 22 32768, 23 - 2147483647, 24 { 25 { 0, 0 }, 26 { 0, 2147483647 } 27 }, 28 { 29 { 65536, 0 }, 30 { 0, 2147483647 } 31 } 32 }, 33 }; 34 35 dst = pixman_image_create_bits (PIXMAN_a8, 1, 1, NULL, -1); 36 37 pixman_add_trapezoids (dst, 0, 0, ARRAY_LENGTH (traps), traps); 38 39 pixman_image_unref (dst); 40 41 return (0); 42} 43