Add rounding epsilon for NEAREST filter after transformation, not before.
authorSøren Sandmann <sandmann@redhat.com>
Tue, 11 Mar 2008 03:41:52 +0000 (23:41 -0400)
committerSøren Sandmann <sandmann@redhat.com>
Tue, 11 Mar 2008 03:41:52 +0000 (23:41 -0400)
commitf2d8a5caa63596739b4dc47c00daaaafd9f522e2
tree679b1dccf8429d54b977b21f3dc3a6f512118a59
parent5bcde57da704000f0fbb52291d01c7f3c0dc8655
Add rounding epsilon for NEAREST filter after transformation, not before.

For nearest filtering, the transformed location must be rounded to the
nearest sample. For locations that precisely in the middle between two
samples, we round down by adding -epsilon to the coordinates.

Before, we would do this on untransformed coordinates. This patch
changes it to happen after transformation. It also clarifies the
difference between sample locations and rounding.

Reported by Robert O'Callahan.
pixman/pixman-compose.c