Commit Graph

113 Commits

Author SHA1 Message Date
Alexander Larsson
c0fdcd1a10 Make canvas Glz decoder integration nicer
We use a dynamic interface similar to e.g. SpiceImageCache instead
of passing both function and opaque
2010-03-08 19:45:27 +01:00
Alexander Larsson
04b35fe7ff Fix colorkeying in pixman_utils.c
We were masking out the alpha bit in the key color not int
the source pixel, so colorkeying didn't work when the high byte
was != 0. For instance in the shutdown dialog in XP.
2010-03-08 19:41:34 +01:00
Alexander Larsson
4f097150cb Fix up win32 build reference to pixman_utils.cpp
It was pointing to the wrong directory for pixman_utils.cpp
2010-03-05 17:17:23 +01:00
Alexander Larsson
2d203bc428 Only use AI_ADDRCONF if availible
AI_ADDRCONF not availible on winXP, so this fixes windows build.
2010-03-03 16:14:19 +01:00
Larsson@.(none)
d425690875 Update visual studio project for pixman changes 2010-03-01 15:12:37 +01:00
Larsson@.(none)
c28169976a Make gdi canvas build in the new pixman world 2010-03-01 15:12:35 +01:00
Larsson@.(none)
98f7d96336 Always include spice/types.h before pixman so standard int types exist 2010-03-01 15:12:33 +01:00
Larsson@.(none)
ea92e6c063 Fix warnings from visual studio compiler 2010-03-01 15:12:32 +01:00
Larsson@.(none)
bb77edf643 Have only one copy of ROUND macro and cast to int explicitly 2010-03-01 15:12:30 +01:00
Gerd Hoffmann
872be6b2d7 spice client: add ipv6 support.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2010-02-27 22:12:08 +02:00
Gerd Hoffmann
878c215501 spice client: fix dns lookup
ignore lookup results which are not ipv4

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2010-02-27 22:08:47 +02:00
Alexander Larsson
239b2b66b2 Remove qcairo dependency, only use pixman 2010-02-23 22:52:06 +01:00
Alexander Larsson
295738b453 Remove cairo use in client 2010-02-23 22:52:06 +01:00
Alexander Larsson
1caa4b65c5 Remove no longer needed CAIRO_CANVAS_CACH_IS_SHARED define and code 2010-02-23 22:52:06 +01:00
Alexander Larsson
e995040b1e Remove last cairo use from canvas_base 2010-02-23 22:52:06 +01:00
Alexander Larsson
7992266ccf Remove cairo_t from cairo canvas 2010-02-23 22:52:06 +01:00
Alexander Larsson
b5693ca0fc Covert cairo canvas put_image() to pixman 2010-02-23 22:52:06 +01:00
Alexander Larsson
98dde80ed3 Replace custom region implementation with pixman_region32_t
pixman_region32_t is an efficient well tested region implementation (its
the one used in X) that we already depend on via pixman and use in
some places. No need to have a custom region implementation.
2010-02-23 22:52:06 +01:00
Alexander Larsson
8f912e4917 Convert cairo canvas clear() to pixman 2010-02-23 22:52:06 +01:00
Alexander Larsson
d430a6c79b Convert cairo canvas group_start/end to pixman 2010-02-23 22:52:06 +01:00
Alexander Larsson
ceff9ca642 Convert cairo canvas read_bits() to pixman 2010-02-23 22:52:06 +01:00
Alexander Larsson
f7c071514b Remove unused cairo helper functions 2010-02-23 22:52:06 +01:00
Alexander Larsson
23d4fdbe8a Convert cairo canvas to use pixman for draw_stroke 2010-02-23 22:52:06 +01:00
Alexander Larsson
e57cfae896 Convert cairo canvas draw_transparent to use pixman 2010-02-23 22:52:06 +01:00
Alexander Larsson
f32185a01d Convert cairo canvas draw_rop3 to using pixman 2010-02-23 22:52:05 +01:00
Alexander Larsson
3b2f1fcb22 Convert draw_blackness/whiteness/invers to using pixman 2010-02-23 22:52:05 +01:00
Alexander Larsson
974c662ae4 Convert cairo canvas alpha_blend to using pixman 2010-02-23 22:52:05 +01:00
Alexander Larsson
824496405a Convert cairo canvas draw_text to using pixman 2010-02-23 22:52:05 +01:00
Alexander Larsson
bf0d038e76 Convert cairo canvas copy bits to pixman 2010-02-23 22:52:05 +01:00
Alexander Larsson
7fe1df4e14 Convert cairo canvas draw_copy() to using pixman
This is just identical to draw_blend().
2010-02-23 22:52:05 +01:00
Alexander Larsson
eff0aa0298 Convert cairo canvas draw_blend() to using pixman 2010-02-23 22:52:05 +01:00
Alexander Larsson
0cb87a507c Convert cairo canvas draw_opaque() to using pixman 2010-02-23 22:52:05 +01:00
Alexander Larsson
864881c318 Convert cairo canvas draw_fill() to using pixman 2010-02-23 22:52:05 +01:00
Alexander Larsson
a7ceb98ea1 Add possibility to not invert bitmask in canvas_get_mask()
This allows the pixman implementation to instead invert the (generally
smaller) region instead of duplicating the bitmap to invert it.
2010-02-23 22:52:05 +01:00
Alexander Larsson
16780a7b81 Use pixman_image_t instead of cairo_surface_t as the generic pixman container
This allows us to use the simpler dependency of pixman outside of the
cairo backend, and it later lets us move the cairo backend to using
pixman only.
2010-02-23 22:52:01 +01:00
Alexander Larsson
0b0342ee7e Turn image and palette cache into c style dynamic interface
Instead of passing a bunch of function pointer and an opaque
pointer we make a real type and add a vtable pointer to it.
This means we can simplify all the canvas constructors, etc.
2010-02-23 14:43:20 +01:00
Alexander Larsson
7537acd630 Add optional templated base class to Cache and SharedCache
We want this for integration with C-style classes.
2010-02-23 14:43:20 +01:00
Alexander Larsson
79d8c5c6a4 Add pixman_image_t referencing the cairo_canvas bits
This references the same data as the cairo surface and can be used
for drawing to the surface using direct pixman calls instead.
2010-02-23 14:43:20 +01:00
Alexander Larsson
60a189f250 Add line rasterizer 2010-02-23 14:43:20 +01:00
Alexander Larsson
9091e763a8 Add pixman utilities
This includes:
 * pixman region from SpiceRects
 * rop2 enum
 * solid fill
 * solid fill with rop
 * tiled fill
 * tiled fill with rop
 * blit
 * blit with rop
 * copy rect
2010-02-23 14:43:15 +01:00
Alexander Larsson
2233dd02a1 Add emacs settings for indent according to spice styleguide 2010-02-23 11:52:30 +01:00
Alexander Larsson
b82f9ed2b3 Fix delete vs delete[] mismatches
This fixes a bunch of valgrind warnings.
2010-02-10 11:25:28 +01:00
Alexander Larsson
39be5a8b13 Use standard int types and <spice/types.h> 2010-02-04 18:49:05 +01:00
Alexander Larsson
90104b39ae Revert automatic renames that were wrong
Seems my rename script didn't handle C++ namespaces that well.
2010-02-04 18:49:05 +01:00
Alexander Larsson
16540e9953 Use the new header names
I just ran:
 find -name "*.[ch]" | xargs sed -i -f ../spice-protocol/includes.sed
 find -name "*.cpp" | xargs sed -i -f ../spice-protocol/includes.sed
2010-02-04 18:49:05 +01:00
Alexander Larsson
1f51697852 Rename symbols that were changed in spice-protocol
This is an automatic change using:
$ find -name "*.[ch]" | xargs ../spice-protocol/rename-identifiers.sh ../spice-protocol/renames
$ find -name "*.cpp" | xargs ../spice-protocol/rename-identifiers.sh ../spice-protocol/renames
2010-02-04 18:49:00 +01:00
Alexander Larsson
c1694fb51b Remove headers that were moved to spice-protocol 2010-02-04 17:56:42 +01:00
Alexander Larsson
3d84818a7b Depend on spice-protocol module
This doesn't actually use the new module, just sets it up for use.
2010-02-04 16:54:17 +01:00
Alexander Larsson
a8ffd12e99 Filter out XIM X events
XIM ClientMessage events to an XIM internal window was triggering
the check for a window message procs. We need to properly filter
events with XFilterEvent to avoid this happening.
2010-02-04 16:11:38 +01:00
Izik Eidus
2ba69f9f88 libspice: add surface 0 support
This include alot of infestracture for off screens.

Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-01-28 04:46:29 +02:00