Offset rendering in pixman_composite_trapezoids() by (x_dst, y_dst)
authorSøren Sandmann Pedersen <ssp@redhat.com>
Fri, 11 Mar 2011 12:52:57 +0000 (07:52 -0500)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 18 Apr 2011 20:27:29 +0000 (16:27 -0400)
commitb455496890f7f941d561c284aca14783300bedd6
tree49141f7f5ba4f615564e4385e87003f934829c65
parente75e6a4ef5c5a8ac8b0e8464f08f83fd2b6e86ed
Offset rendering in pixman_composite_trapezoids() by (x_dst, y_dst)

Previously, this function would do coordinate calculations in such a
way that (x_dst, y_dst) would only affect the alignment of the source
image, but not of the traps, which would always be considered to be in
absolute destination coordinates. This is unlike the
pixman_image_composite() function which also registers the mask to the
destination.

This patch makes it so that traps are also offset by (x_dst, y_dst).

Also add a comment explaining how this function is supposed to
operate, and update tri-test.c and composite-trap-test.c to deal with
the new semantics.
demos/tri-test.c
pixman/pixman-trap.c
test/composite-traps-test.c