summaryrefslogtreecommitdiffstats
path: root/python_modules
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-08-27 16:33:35 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:49 +0100
commitb0fe22b6ff3bb3f5d7bbf63826c869e9ba7232ea (patch)
tree93027624b83f0abac362bb9f8ee0eaaa689824b2 /python_modules
parent6264783c53f67958f141a474ec00edf1c5fffda1 (diff)
downloadspice-common-b0fe22b6ff3bb3f5d7bbf63826c869e9ba7232ea.tar.gz
spice-common-b0fe22b6ff3bb3f5d7bbf63826c869e9ba7232ea.tar.xz
spice-common-b0fe22b6ff3bb3f5d7bbf63826c869e9ba7232ea.zip
canvas: Better coordinate rounding in scaling
When scaling in pixman you give the source coordinates in transformed space rather than in the source coordinates. This is a bit problematic when both source and destination coordinates are at integer positions, but the scaling factor is not an exact 16.16 fixed point value. We used to calculate the transformed source based on the floating point transformation, which gave the wrong answer sometimes. Now we do the calculations based on the fixed point transform that we give pixman. However, even with this patch I can still sometimes see issues related to this, although they are less bad.
Diffstat (limited to 'python_modules')
0 files changed, 0 insertions, 0 deletions