Fix alpha map computation in pixman_compute_composite_region()
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Wed, 20 May 2009 14:45:29 +0000 (10:45 -0400)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Thu, 21 May 2009 22:25:57 +0000 (18:25 -0400)
commit85b390cadf8c60808ed17df95885e72c082ad180
treeb3c9b05d26a5084bcf058797af5c1b0255886c38
parentcb4085bdb5a40c38209f69c26b3ffe60d08ff4de
Fix alpha map computation in pixman_compute_composite_region()

According to the RENDER spec, the origin of the alpha map is
interpreted relative to the origin of the drawable of the image, not
the origin of the drawable of the alpha map.

This commit fixes that and adds an alpha-test.c test program.

The only use of alpha maps I have been able to find is in Qt and they
don't use a non-zero alpha origin.
pixman/pixman-compute-region.c
test/Makefile.am
test/alpha-test.c [new file with mode: 0644]