spice-common/common
Alexander Larsson 96faad998e 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.
2012-03-20 15:25:49 +01:00
..
win Add files i forgot to commit 2012-03-20 15:25:48 +01:00
.gitignore fresh start 2012-03-20 15:25:36 +01:00
canvas_base.c canvas_base jpeg_alpha: supply the correct size to jpeg_decoder 2012-03-20 15:25:48 +01:00
canvas_base.h Fix various misspellings 2012-03-20 15:25:48 +01:00
canvas_utils.c server: Fix alloc_lz_image_surface stride allocations 2012-03-20 15:25:49 +01:00
canvas_utils.h Make each surface its own depth/format 2012-03-20 15:25:42 +01:00
draw.h Fix various misspellings 2012-03-20 15:25:48 +01:00
gdi_canvas.c Fix various misspellings 2012-03-20 15:25:48 +01:00
gdi_canvas.h Move in spice/draw.h from spice-protocol to common/ 2012-03-20 15:25:48 +01:00
gl_canvas.c Fix various misspellings 2012-03-20 15:25:48 +01:00
gl_canvas.h Move in spice/draw.h from spice-protocol to common/ 2012-03-20 15:25:48 +01:00
gl_utils.h Add C version of find_msb() 2012-03-20 15:25:42 +01:00
glc.c Fix spelling errors in comments and strings 2012-03-20 15:25:42 +01:00
glc.c.save fresh start 2012-03-20 15:25:36 +01:00
glc.h Add emacs settings for indent according to spice styleguide 2012-03-20 15:25:37 +01:00
lines.c Use the spice allocator in common/ 2012-03-20 15:25:40 +01:00
lines.h Fix inclusion of common files, no need for common/ part 2012-03-20 15:25:48 +01:00
lz_common.h Lossy compression of RGBA images (on WAN connection) 2012-03-20 15:25:44 +01:00
lz_compress_tmpl.c Fix spelling errors in comments and strings 2012-03-20 15:25:42 +01:00
lz_config.h Use macros from <spice/macros.h> rather than duplicate them 2012-03-20 15:25:40 +01:00
lz_decompress_tmpl.c Fix spelling errors in comments and strings 2012-03-20 15:25:42 +01:00
lz.c Lossy compression of RGBA images (on WAN connection) 2012-03-20 15:25:44 +01:00
lz.h Fix inclusion of common files, no need for common/ part 2012-03-20 15:25:48 +01:00
Makefile.am Make distcheck work 2012-03-20 15:25:48 +01:00
marshaller.c Fix sign warnings from win32 compiler 2012-03-20 15:25:48 +01:00
marshaller.h Fix inclusion of common files, no need for common/ part 2012-03-20 15:25:48 +01:00
mem.c Fix sign warnings from win32 compiler 2012-03-20 15:25:48 +01:00
mem.h Move SpiceChunks to mem.h 2012-03-20 15:25:48 +01:00
messages.h Don't send padding over the network with video data 2012-03-20 15:25:49 +01:00
mutex.h Relicense everything from GPL to LGPL 2.1+ 2012-03-20 15:25:41 +01:00
ogl_ctx.c Relicense everything from GPL to LGPL 2.1+ 2012-03-20 15:25:41 +01:00
ogl_ctx.h Relicense everything from GPL to LGPL 2.1+ 2012-03-20 15:25:41 +01:00
pixman_utils.c Simplify spice_pixman_region32_init_rects with new types 2012-03-20 15:25:48 +01:00
pixman_utils.h Fix inclusion of common files, no need for common/ part 2012-03-20 15:25:48 +01:00
quic_config.h Relicense everything from GPL to LGPL 2.1+ 2012-03-20 15:25:41 +01:00
quic_family_tmpl.c Relicense everything from GPL to LGPL 2.1+ 2012-03-20 15:25:41 +01:00
quic_rgb_tmpl.c Relicense everything from GPL to LGPL 2.1+ 2012-03-20 15:25:41 +01:00
quic_tmpl.c Relicense everything from GPL to LGPL 2.1+ 2012-03-20 15:25:41 +01:00
quic.c Fix spelling errors in comments and strings 2012-03-20 15:25:42 +01:00
quic.h Fix spelling errors in comments and strings 2012-03-20 15:25:42 +01:00
rect.h Fix inclusion of common files, no need for common/ part 2012-03-20 15:25:48 +01:00
region.c Fix warnings breaking win32 build 2012-03-20 15:25:41 +01:00
region.h Fix inclusion of common files, no need for common/ part 2012-03-20 15:25:48 +01:00
ring.h Relicense everything from GPL to LGPL 2.1+ 2012-03-20 15:25:41 +01:00
rop3.c Add support for 16bit rop3 2012-03-20 15:25:41 +01:00
rop3.h Fix inclusion of common files, no need for common/ part 2012-03-20 15:25:48 +01:00
sw_canvas.c Fix scaling with large magnification 2012-03-20 15:25:49 +01:00
sw_canvas.h Stride can be negative, so don't use size_t for it 2012-03-20 15:25:49 +01:00