summaryrefslogtreecommitdiffstats
path: root/python_modules
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-08-30 15:33:36 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:49 +0100
commitdeaf22e9bc78cd3d2a51205a98a46e2dce17521a (patch)
tree0c1d850f54d50c8e463656ba71f4a499e93d2dba /python_modules
parentb0fe22b6ff3bb3f5d7bbf63826c869e9ba7232ea (diff)
downloadspice-common-deaf22e9bc78cd3d2a51205a98a46e2dce17521a.tar.gz
spice-common-deaf22e9bc78cd3d2a51205a98a46e2dce17521a.tar.xz
spice-common-deaf22e9bc78cd3d2a51205a98a46e2dce17521a.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. In order to work around this we generate a "sub-image" of the pixman image such that the src_x/y values we have to specify are zero (or near zero).
Diffstat (limited to 'python_modules')
0 files changed, 0 insertions, 0 deletions