summaryrefslogtreecommitdiffstats
path: root/python_modules
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-08-31 12:07:31 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:49 +0100
commit96faad998e72b0bac20a59e002ea469b3410dced (patch)
tree5475156ae0ef0059e8c4c9e1d7a648239210610e /python_modules
parent4b0da43949da1205f99316ea09f4ec54e2a88f07 (diff)
downloadspice-common-96faad998e72b0bac20a59e002ea469b3410dced.tar.gz
spice-common-96faad998e72b0bac20a59e002ea469b3410dced.tar.xz
spice-common-96faad998e72b0bac20a59e002ea469b3410dced.zip
Fix scaling with large magnification
When scaling part of an image we need to specify the source coordinates in transformed coordinates. For large magnifications this means we will get pretty large values. Now, if e.g. src_x * transform is larger than 32765, then the coordinate ends up outside the pixman 16bit image size, so the rendering will not work. The fix is to make the src_x/y offset part of the transformation. This means its automatically transformed by the correct scaling, and the coordinates passed into pixman are not (typically) over 16bit.
Diffstat (limited to 'python_modules')
0 files changed, 0 insertions, 0 deletions