summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-08-27 16:33:35 +0200
committerAlexander Larsson <alexl@redhat.com>2010-08-27 16:33:35 +0200
commit9ac9099842a7379a991a70627ddf6fe47462fc4a (patch)
tree822f3612d7f7ff855648aebfc798f517fbab46b6 /server
parent250203951bc02528d821fa775949edd09b8c6d8c (diff)
downloadspice-9ac9099842a7379a991a70627ddf6fe47462fc4a.tar.gz
spice-9ac9099842a7379a991a70627ddf6fe47462fc4a.tar.xz
spice-9ac9099842a7379a991a70627ddf6fe47462fc4a.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 'server')
0 files changed, 0 insertions, 0 deletions