[Spice-devel] [PATCH 1/1] Fix scaling with large magnification

Gerd Hoffmann kraxel at redhat.com
Mon Aug 30 07:05:35 PDT 2010


On 08/30/10 15:54, alexl at redhat.com wrote:
> From: Alexander Larsson<alexl at redhat.com>
>
> 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).

Math is hard, let's go shopping ;)

Seriously:  Looks sane to my untrained eyes, ACK.

cheers,
   Gerd



More information about the Spice-devel mailing list