summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* mingw32 build: fix two functionsAlon Levy2012-03-201-1/+1
|
* mingw32 build: fix signed/unsigned warnings as errorsAlon Levy2012-03-203-7/+7
|
* mingw32 build: fix build errorsGerd Hoffmann2012-03-201-2/+2
| | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* smartcard: add to spice.protoAlon Levy2012-03-201-0/+8
|
* spice codegen: fix copy-o, no such variable valueAlon Levy2012-03-201-1/+1
|
* Initialize variable to avoid compiler warningAlexander Larsson2012-03-201-1/+1
| | | | Seems the OSX gcc warns on saveRight not being initialzied.
* Handle surface images in DrawOpaqueAlexander Larsson2012-03-201-19/+42
|
* Fix crash when resetting pixman image transformAlexander Larsson2012-03-201-1/+2
| | | | | Resetting the transform is done by setting it to the identity transform, not passing in NULL. Passing in NULL causes a crash.
* Fix scaling with large magnificationAlexander Larsson2012-03-201-20/+16
| | | | | | | | | | | | | | 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.
* Revert "Fix scaling with large magnification"Alexander Larsson2012-03-201-104/+32
| | | | This reverts commit e13be77f33609cb3fdae354ce1f2686ae865f9e0.
* Fix scaling with large magnificationAlexander Larsson2012-03-201-32/+104
| | | | | | | | | | | | | | 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).
* canvas: Better coordinate rounding in scalingAlexander Larsson2012-03-201-28/+36
| | | | | | | | | | | | | 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.
* server: Fix alloc_lz_image_surface stride allocationsAlexander Larsson2012-03-201-1/+1
| | | | | All lz surfaces are not 4 bytes per pixel, calculate the right stride based on the pixman format.
* Stride can be negative, so don't use size_t for itAlexander Larsson2012-03-202-2/+2
|
* support python 2.5.4+ for marshaller/demarshallersAlon Levy2012-03-203-0/+3
| | | | | Patch adds a "from __future__" import that doesn't affect newer python's but allows python 2.5.4 to run the code (tested under scratchbox, n900 build environment)
* demarshaller: Fix palette marshallingAlexander Larsson2012-03-201-14/+32
| | | | | | | It turns out that using base + sizeof(struct) is not a good way to access an array at the end of a struct. For SpicePalette sizeof is 16, but offset of ents is 12. Using this calculation in the demarshaller breaks things badly, so now we use the actual array member.
* Don't send padding over the network with video dataAlexander Larsson2012-03-203-5/+2
|
* Fix uninitialized variable warningsAlexander Larsson2012-03-201-1/+1
|
* Don't send CursorHeader if cursor_flags is NONEAlexander Larsson2012-03-204-5/+11
|
* Send Clip.rects inline rather than using a pointerAlexander Larsson2012-03-201-1/+1
|
* codegen: Allow @to_ptr to make inline structs demarshal as pointersAlexander Larsson2012-03-203-9/+37
|
* codegen: Various cleanupsAlexander Larsson2012-03-205-89/+71
| | | | | | | | | | | | Remove all uses of @end in the marshaller, instead just using the C struct array-at-end-of-struct. To make this work we also remove all use of @end for switches (making them C unions). We drop the zero member of the notify message so that we can avoid this use of @end for a primitive in the marshaller (plus its useless to send over the wire). We change the offsets and stuff in the migration messages to real pointers.
* codegen: Pass member to SubMarshallingSource rather than nameAlexander Larsson2012-03-201-9/+10
| | | | This way we can check attributes on the member.
* codegen: Remove unused methos has_pointer()Alexander Larsson2012-03-201-27/+0
|
* canvas_base jpeg_alpha: supply the correct size to jpeg_decoderYonit Halperin2012-03-201-1/+1
|
* Don't marshall bitmap data as pointer, instead send inlineAlexander Larsson2012-03-201-1/+1
|
* Add files i forgot to commitAlexander Larsson2012-03-202-0/+15
|
* Make distcheck workAlexander Larsson2012-03-203-9/+9
|
* Fix various misspellingsAlexander Larsson2012-03-208-9/+9
| | | | | | | | | | | | | letancy -> latency compund -> compound SpicedSubMessage -> SpiceSubMessage modifaiers -> modifiers massage -> message outgoiong -> outgoing AlphaBlnd -> AlphaBlend remoth -> remote modifires -> modifiers secore -> secure
* Fix sign warnings from win32 compilerAlexander Larsson2012-03-202-3/+3
|
* Fix inclusion of common files, no need for common/ partAlexander Larsson2012-03-2012-12/+12
|
* Simplify spice_pixman_region32_init_rects with new typesAlexander Larsson2012-03-201-28/+2
| | | | | Don't manually of SpiceRects to pixman_box32_t now that they are compatible and SpiceRect is internal.
* Make all internal structures not be packedAlexander Larsson2012-03-201-37/+33
|
* Move SpiceChunks to mem.hAlexander Larsson2012-03-203-19/+19
|
* Move in spice/draw.h from spice-protocol to common/Alexander Larsson2012-03-2015-13/+305
|
* codegen: No SPICE_ADDRESS types left, drop @c_ptrAlexander Larsson2012-03-204-44/+37
|
* Properly parse QXLLineAttrs.styleAlexander Larsson2012-03-204-5/+4
|
* Properly parse QXLImage to the new-world SpiceImageGerd Hoffmann2012-03-2011-300/+198
| | | | | SpiceImage now replaces RedImage and has all image types in it. All image data are now chunked (and as such not copied when demarshalling).
* codegen: support @chunk on non-pointer arraysAlexander Larsson2012-03-202-5/+29
| | | | This is similar to @as_ptr, but generates a single chunk of data.
* Add support for @chunkAlexander Larsson2012-03-201-2/+18
|
* marshaller: Make get_nw_offset() handle deep member referencesAlexander Larsson2012-03-201-7/+32
|
* Add spice_marshaller_add_ref_chunksAlexander Larsson2012-03-202-0/+12
|
* Add spice_chunks_* helpersAlexander Larsson2012-03-202-0/+64
|
* Convert SpicePath.segments to a pointer arrayAlexander Larsson2012-03-206-53/+50
|
* Handle extra size for switch and array the right wayAlexander Larsson2012-03-201-23/+20
| | | | | | Even for is_extra_size() we should calculate the mem_size for arrays, its just that the parent type (in this case switch) should request mem_size if the type is_extra_size.
* marshaller: Add some docs describing the types of sizesAlexander Larsson2012-03-201-0/+29
|
* marshaller: Make @nonnull a propagated attributeAlexander Larsson2012-03-203-6/+3
| | | | This cleans up some stuff
* marshaller: Make @c_ptr a propagated attributeAlexander Larsson2012-03-202-17/+18
| | | | This simplifies some code
* marshaller: Add generic way to handle propagating attributesAlexander Larsson2012-03-203-11/+18
| | | | Also switches @ptr_array to use this
* Properly parse and marshall SpiceStringGerd Hoffmann2012-03-206-39/+74
|